I have an existing application in which I am working on integrating React-Native for its part. I am having trouble understanding how to "get out" react-native and get back to my own look.
Here is the code:
// Main objective-c code that bootstraps the react-native view. This view is loaded as a modal view. MainViewController.m: - (void)viewDidLoad { [super viewDidLoad]; RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation moduleName:@"IndexApp" initialProperties:props launchOptions:nil]; rootView.frame = CGRectMake(0, 0, self.view.bounds.size.width, self.view.bounds.size.height-49); [self.view addSubview:rootView]; }
My initial opinion is as follows:
render() { return ( <Navigator style={styles.container} ...
I have a right navigator button in the Navigator that I would like to βrejectβ in the reaction view and in the main view of MainViewController.
I tried the MainViewController callback from a reactive view like this, but to no avail:
RCT_EXPORT_METHOD(dismiss:(NSString *)name location:(NSString *)location) { NSLog(@"dismiss...");
Any help with approaching the "exit" due to reverse lookup and returning to your own views will be appreciated.
source share