how to get offline bunduling of ios in react native

前端 未结 3 556
遇见更好的自我
遇见更好的自我 2021-02-04 17:27

Anyone could you please explain how to generate offline bundle of ios application from \'react native\' code.

Already I tried \"How to generate .ipa file for react-nat

3条回答
  •  旧巷少年郎
    2021-02-04 17:59

    react-native run-ios --configuration=release
    

    Will run your app on Simulator or Device with the bundle.

    Or just build it from Xcode (release build always includes the bundle) Or run the debug release but before that, you should :

    react-native bundle --dev false --entry-file index.ios.js --bundle-output ios/main.jsbundle --platform ios
    

    Also, new react-native versions index.ios.js not found because of we need run this,

    react-native bundle --dev false --entry-file index.js --bundle-output ios/main.jsbundle --platform ios
    

提交回复
热议问题