Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://gist.github.com/marty-wang/5a71e9d0a6a2c6d6263c
- tạo thư mục assets trong android/app/src/main/..
- run lệnh 1
- curl "http://localhost:8081/index.bundle?platform=android" -o "android/app/src/main/assets/index.bundle"
- run lệnh 2 để copy resource sang android
- react-native bundle --platform android --entry-file index.js --bundle-output android/app/src/main/assets/index.bundle --dev false --reset-cache --assets-dest android/app/src/main/res/
- Run this command to clean project:
- cd android && .\gradlew clean
- After, run the following command to run project again:
- cd .. && react-native run-android
- $ cd android && ./gradlew assembleRelease
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement