Skip to content

Instantly share code, notes, and snippets.

@dmandrade
Last active April 18, 2024 00:16
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save dmandrade/e76a2da8da8a325f3ab9e275da15d5d9 to your computer and use it in GitHub Desktop.
Save dmandrade/e76a2da8da8a325f3ab9e275da15d5d9 to your computer and use it in GitHub Desktop.
React Native build unsigned apk without development server
# create assets folder in the current project
$ mkdir android/app/src/main/assets
# create bundle script
$ react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
# execute command to run android to create debug apk
$ react-native run-android
# change to android folder
$ cd android
# build debug apk
$ ./gradlew assembleDebug
# install app
$ ./gradlew :app:installDebug
@bhxshxn
Copy link

bhxshxn commented Sep 13, 2023

not working for native 0.7+

@lutfi-haslab
Copy link

not working for native 0.7+

i can confirm working for 0.72, just try it for armeabi v7a.

@yagizhanNY
Copy link

It's working for version 0.73.2 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment