iOS原生接入RN开发模式和离线包
1、https://reactnative.cn/docs/integration-with-existing-apps/ 根据RN官网配置环境
2、 打包bundle,在package.json配置脚本如下
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"bundle-ios": "react-native bundle --platform ios --entry-file index.ios.js --bundle-output ./ios/bundle/xx.ios.jsbundle --assets-dest ./ios/bundle --dev false",
"bundle-android": "react-native bundle --platform android --entry-file index.android.js --bundle-<