How do you run react-native app in production mode?
- You can also use the React Native CLI to generate and run a Release build (e.g. react-native run-android --variant=release).
It's in the dev menu under the settings option. The key is that you then have to reload the JS. You can verify in your packager output that dev=false
.
There are two configurations Release
and Debug
. By default apps run in debug
mode. To run in Release
mode
react-native run-android --variant release #android
react-native run-ios --configuration Release #ios
To find other available options
react-native run-ios -h
react-native run-android -h