Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to protect react-native app from reverse engineering?

I have recently created an app with react-native and my concern is about react-native security. I heard that react-native is not compiled and the code exists as it is in development.

So if we have some sensitive data in variables, what can we do for protecting that?

like image 911
Belqis Avatar asked Oct 21 '25 05:10

Belqis


1 Answers

If you want to protect your react-native app in release, consider the following.

  1. always save your sensitive data in shared preferences on android and keychain on ios, here is a nice package: https://github.com/oblador/react-native-keychain
  2. use react-native proguard
  3. Encrypt your data and decrypt when you need it.
  4. If possible save your data on server side
like image 60
Muhammad Avatar answered Oct 23 '25 21:10

Muhammad



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!