The project is based on the official template, using the metro-code-split to implement the react-native code split example
-
yarn && cd ios && pod install // install dependencies
-
Use charles to simulate the load of business resources
- Tip: Make sure the iOS Simulator has a charles certificate installed
- npm run ios or Using Xcode opens the ios/rnCodeSplitDemo.xcworkspace click run
- Tip: manually merge _dl.ios.bundle into buz.ios.bundle for test convenience (should be built into App in production)