freeRASP for React Native is a bare React Native plugin. When installing freeRASP into a project that uses Expo SDK, there may be extra configuration needed.
To integrate freeRASP into the Expo projects, follow the instructions for React Native. After that, continue on this page.
We provide a plugin config that sets up the dependencies of freeRASP without the need to eject the Expo project. It is recommended to use the plugin config. However, manual setup is also possible.
Add the plugin config to your app.json
and specify the minSdkVersion
(use at least 23). Additionally, if you are using Expo 50, increase the version of R8 above 8.2 with the R8Version
property (to support sealed classes on Android).
Increase minSdkVersion
This can be done in two ways:
update the minSdkVersion
property directly in android/build.gradle
, or
use expo-build-properties
plugin, which updates the property in the prebuild phase. Read more in the Expo docs.
Add maven dependency
open android/build.gradle
(if you don't see the android folder, run npx expo prebuild -p android
in terminal to create it)
add the following dependency under allprojects
> repositories
:
if not already configured, add also: