Expo Route — Build .apk manually

Mika Dam
Dec 11, 2023

--

Firstly, add a new “assets” folder in android/app/src/main/ and

Simply add this following line to your package.json file:

{
...
"scripts":{
...other scripts,
"build:android": "react-native bundle --platform android --dev false --entry-file node_modules/expo-router/entry.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res && cd android && ./gradlew assembleDebug"
}
...
}

That’s it !

( Don’t forget to setup ANDROID_HOME to your path ;) )

--

--

Mika Dam
Mika Dam

Written by Mika Dam

Self Made Developper searching for job ;)

No responses yet