Skip to content

Instantly share code, notes, and snippets.

@tareq3
Last active October 1, 2022 14:46
Show Gist options
  • Save tareq3/eb7ee27a0a88db405f3d7ce6ce3d2601 to your computer and use it in GitHub Desktop.
Save tareq3/eb7ee27a0a88db405f3d7ce6ce3d2601 to your computer and use it in GitHub Desktop.

A project using typescript generate release build app



  1. Release key need to be added 
and do some regular steps as per react -native guidelines 
https://reactnative.dev/docs/signed-apk-android


  2. Instead of creating aab we will create apk

  3. Create assets directory inside Android like below


/Users/tareq/code/threls/react-native/sdk/weavr-react-native/example/android/app/src/main/assets




4.Bundle assets using the following command


npx	react-native bundle --platform android --dev false --entry-file index.tsx --bundle-output android/app/src/main/assets/index.android.bundle 		--assets-dest android/app/src/main/res/


5. Use the following command to generate apk now from android directory

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