Generate signed release android APK run without server React Native

Full form of APK is Android Package Kit. The APK file is a generated package file containing all the important files which is recommended to run android app on android mobile device. By default when we create react native project app and install that app on our device – Emulator then the app install as Debug Mode. But we cannot get the Signed Release Android APK and without the original APK file we cannot upload this file on Google Play Store. There is also a problem that all the react native beginners is facing that the Un-Signed APK cannot run without the JS server. So using the Singed APK we can run our react native android app to any android mobile device without running the JS Server and upload .APK file to Google Play Store. So in this tutorial we would going to Generate signed release android APK that run without JS Server in React Native in Windows PC using Key Store.

Contents in this tutorial Generate signed release android APK that run without JS Server in React Native:

1. Start Command Prompt(CMD) in Windows with Administrator Mode.


2. Goto your JDK -> bin installation folder in Command Prompt like i did in below screenshot.

3. Run the below command in bin directory in Command Prompt.

4. After entering the above command in bin directory in It will ask some information about your application.

Note: Remember the password your enter while creating release-key.keystore file. Because it will use in below steps.

I am sharing the screenshot below.

5. After successfully done all the procedure the generated release-key.keystore file would store in C:Program FilesJavajdk1.8.0_92bin folder.

6. Copy the release-key.keystore file from bin folder and paste inside the YourReactNativeProject -> android -> app folder like i did in below screenshot.

7. Open the gradle.properties file present in YourReactNativeProject -> android.

8. Paste the below code inside the gradle.properties file.

Code of my projects gradle.properties file after adding above code :

9. Open the build.gradle file present inside YourReactNativeProject -> android -> app folder.

10. Add below code inside the build.gradle file in android scope.

11. Code of my project’s build.gradle file after adding above code.

12. Now finally open your react native project folder in command prompt and execute the below command.

Screenshot of CMD after executing above command :

Here you go guys, the final signed release android APK file will created inside the YourReactNativeProject -> android -> app -> build -> outputs -> apk folder.

Happy Reading . Now you can upload this file on Google play store and also run in any device without running the JS Server.