We’ve recently worked with a handful of customers in the process of creating React Native apps. As with other mobile development frameworks, it is relatively easy to reverse engineer and tamper with React Native apps. For this reason, it’s essential to secure your organization’s IP and data before publishing. In the following article, we’ll discuss how to do so using PreEmptive.
JSDefender’s Metro plugin and DashO’s Gradle plugin integrate protection directly into our build.
When building the React Native project
>npx react-native run-android
>gradlew clean assembleRelease or bundleRelease
PreEmptive can be seen running in the build output:
After this build, binary is hardened against decompilation, reverse engineering, and tampering:
The full source code sample can be downloaded here.
In order to run the sample:
- Download the JSDefender (trial or commercial) Core and Metro npm packages.
- Configure the JSDefender license key in jsdefender.config.json.
- Install and register PreEmptive DashO (trial or commercial) on your machine.
- Run npm install within the directory.
If you have feedback on this topic or any other topics you would like us to discuss in the Support Corner, please contact us.