Photo by Artem Sapegin on Unsplash
So I have been working on React Native for a long time, now and no one actually asked me this till I actually ...
For further actions, you may consider blocking this person and/or reporting abuse
Form me it worked with
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_the entry file, index.js, not _index.js
Yes. will edit the post to make the update.
Thanks for the help, man!
packing everything in a script and add the relevant command in package.json
package.json:
create the file in the root folder build_debug_offline.sh, add +x permission to it
build_debug_offline.sh:
Mine gets stuck on the asyncstorage module. First, the metro bundler crashes with permission error (even as admin) and the debug build just gets stuck.
Here's the error:
The bundler runs just fine when used normally using
react-native run-androidThis is generally the issue when CMD is not run as ADMIN.
Try running it as admin and then proceeding as given.
Hi my friend!
is it possible generate a serverless APK on Expo builder?
I've tried following what you indicate, but it didn't work.
thanks a lot!
output :::::::::::::::::::::::::::::::::::
λ react-native bundle --platform android --dev false --entry-file App.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
Loading dependency graph, done.
info Writing bundle output to:, android/app/src/main/assets/index.android.bundle
info Done writing bundle output
info Copying 51 asset files
info Done copying assets
C:\myWork\dev-movil (master)
λ curl "localhost:8081/index.bundle?platfo..." -o "android/app/src/main/assets/index.android.bundle"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0curl: (7) Failed to connect to localhost port 8081: Connection refused
C:\myWork\dev-movil (master)
λ curl "127.0.0.1:19000/index.bundle?platf..." -o "android/app/src/main/assets/index.android.bundle"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 151 100 151 0 0 151 0 0:00:01 --:--:-- 0:00:01 4870
C:\myWork\dev-movil (master)
λ cd android && ./gradlew clean assembleDebug
"." no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
My images were not being displayed if I follow this process. Using react native - 0.61
I want to apologise for the mistake that happened that in the end of the
react-nativecommand and underscore occurred, which is probably why the images didn't got bundled correctly.You can try it again I have fixed the latest issues.
Thanks for pointing it out.
Great!! Simple and straightforward!! Thank you very much. That worked for me.
thanks for great post.
how to build release apk with removing console logs?