Integration with exsiting apps doc shows how to present view controller whose content is react native .
RCTRootView *rootView =
[[RCTRootView alloc] initWithBundleURL: jsCodeLocation
moduleName: @"RNHighScores"
initialProperties:
@{
@"scores" : @[
@{
@"name" : @"Alex",
@"value": @"42"
},
@{
@"name" : @"Joel",
@"value": @"10"
}
]
}
launchOptions: nil];
UIViewController *vc = [[UIViewController alloc] init];
vc.view = rootView;
[self presentViewController:vc animated:YES completion:nil];
What it doesn't tell you is how to dismiss the viewcontroller since we are in react native (javascript world) not objc/swift world anymore..
How can I call native dimiss... function on the viewcontroller?