-
Notifications
You must be signed in to change notification settings - Fork 24.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Touchable] press event not responding after pushed to stack. #544
Comments
@wqyfavor Did you ever get this resolved? I'm seeing that your trying to call First, you'll need to include @implementation ReactNativeBridger
RCT_EXPORT_MODULE();
RCT_EXPORT_METHOD(startReactApp:(NSString *)componentName title:(NSString *)title
{
NSURL *jsCodeLocation;
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle"];
RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:componentName
launchOptions:@{}];
UIViewController* vc = [[UIViewController alloc] init];
vc.view = rootView;
vc.title = title;
dispatch_async(dispatch_get_main_queue(), ^{
[theNavi pushViewController:vc animated:YES];
});
}
@end
You can find more info here... |
Sorry for never getting back to you here, this is pretty old now - if you're still having this issue please ping me and we can reopen. Lots has changed since this was originally posted so it's very likely that this problem has been resolved! 😄 |
Thanks. I think this has been solved. Thank you. |
My test is simple.
In didFinishLaunchingWithOptions, I create a UINavigationController and a UIViewController which contains RCTRootView. Then push the UIViewController to UINavigationController' s stack.
And I write a bridger which can load another RCTRootView, and push the new UIViewController to navigation controller.
The js just do one thing. On press, the script will invoke startReactApp method and push a new RCTRootView.
The first view works perfectly. Press the button, another view will be pushed. But when I click the same button on the second view, nothing happens. It cannot respond to my pressing event.
The text was updated successfully, but these errors were encountered: