Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build react native android app for production?

Tags:

react-native

I've seen new release of react native for android and tried some examples. It works only with USB debug mode and "adb reverse tcp:8081 tcp:8081". How can I build android app for "production" including all dependencies and without react web-server connections. Thank you.

like image 859
sanny Avatar asked Sep 17 '15 11:09

sanny


People also ask

Can you build Android apps with React Native?

Yeah, with React Native you can build mobile apps that can run on iOS and Android. This is one of the great benefits of React Native. Before Facebook created it, you had to build your app twice and with different code: one for iOS using Swift or Objective-C and one for Android using Java or Kotlin.

Is React Native production ready?

Not only can developers build apps that run on the web, but they can also build native apps for Android and iOS that run with JavaScript. Frameworks like React Native and NativeScript make building elegant, efficient, production-ready, and scalable mobile apps with JavaScript easy.

Can you build an app with React Native?

React Native is an open-source mobile application framework used to develop apps for Android, Apple, and Windows platforms; and for the web. Develop native apps for Android and iOS using React and JavaScript to create a single codebase that can be shared across platforms.


1 Answers

To build a release version of your Android app:

$ cd your-app-folder $ cd android && ./gradlew assembleRelease 

You'll need to set up signing keys for the Play Store, full documentation here: https://reactnative.dev/docs/signed-apk-android

like image 61
Martin Konicek Avatar answered Oct 03 '22 03:10

Martin Konicek