RCTRootView, UIView.
RCTRootView *someRootView = [[RCTRootView alloc] initWithBundleURL:someJsCodeLocation
moduleName:@"SomeRootComponent"
launchOptions:nil];
RCTRootView *anotherRootView = [[RCTRootView alloc] initWithBundleURL:anotherJsCodeLocation
moduleName:@"AnotherRootComponent"
launchOptions:nil];
(jsCodeLocation) RCTRootView RCTRootView. (moduleName):
AppRegistry.registerComponent('SomeRootComponent', () => SomeRootComponent);
AppRegistry.registerComponent('AnotherRootComponent', () => AnotherRootComponent);
, :
curl 'http://localhost:8082/index1.ios.bundle?dev=false&minify=true' -o iOS/main1.jsbundle
curl 'http://localhost:8082/index2.ios.bundle?dev=false&minify=true' -o iOS/main2.jsbundle
main1.jsbundle main2.jsbundle .