rn-packager
v0.12.1
Published
Based on Facebook Packager v0.42.3, support Core & Business JS Separate.
Readme
ReactNative Packager
Standalone ReactNative Packager without framework code.
Do What?
- bundle-split, solution from https://github.com/facebook/react-native/pull/10804
- use module name as before (ps: core.bundle and app.bundle are different bundle session, so module ids may conflict)
Dependencies
"devDependencies": {
"rn-packager": "~0.12.0",
"react-native": "0.42.3",
"react": "~15.4.1"
}Bundle
Now u can use manifest.json file to generate core modules.
- Bundle ur core bundle and output
manifest.json - Bundle ur app bundle with
manifest.jsonthat Step 1 generated.
Bundle core
$ rnpackager bundle --entry-file node_modules/react-native/Libraries/react-native/react-native.js --bundle-output core.ios.bundle --platform ios --manifest-output core.ios.manifest.jsonBundle app
rnpackager bundle --entry-file foo.js --bundle-output foo.ios.bundle --platform ios --manifest-file core.ios.manifest.jsonServer
$ rnpackager startDemo
$ cd tests
$ npm i
$ rnpackager startvisit:
