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 ;) )