Error index.android.bundle in React Native

  • Updated

If you got an error in our sample ReactNative index.android.bundle after you build your application. You can run this script to fix it:

Android

react-native bundle —platform android —dev true —entry-file index.js —bundle-output android/app/src/main/assets/index.android.bundle —assets-dest android/app/src/main/res

iOS

react-native bundle --entry-file='index.js' --bundle-output='./ios/qiscusrn/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'

 

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.