简体   繁体   中英

How to permanently install an app in React Native

npm start

Select a - for android

However, with this, you only have the app running temporarily and have to do it repeatedly to launch it.

Is there a way to permanently install an app by Build -> Install like on Android Studio?

Thank you all in advance.

Well if you wish to permanently install the app on your phone, you will have to generate a production build (.apk file) and install it on your phone.

npx react-native run-android --variant=release

Read this for more clearity regarding builds.

It's unclear if you want to install it to your physical device or not.

In android studio you can press "Build" in the menu and then select build variants, change "app" to release.

Similarly in xcode, you can select build configuration to be on release.

Then you just build the project and you will have a release version of the app on your phone.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM