-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[DevMenu] (AlertView / ActionSheet) is not activated when a view controller is presented modally #2063
Comments
Could you submit a PR for this? It's not required functionality for Facebook at the moment, as far as I know, so a fix wouldn't be available anytime soon. Also, while it's nice to provide a set of steps to reproduce this, a sample app would greatly reduce the friction to people helping. |
@fatuhoku I tried to reproduce the problem but I couldn't. The Dev Menu comes up no matter what. I'm using the following code to present a modal viewController with the rootView loaded as it's view: RCTRootView *rootView = [[RCTRootView alloc] initWithBundleURL:jsCodeLocation
moduleName:@"TestActionSheet"
launchOptions:launchOptions];
self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
UIViewController *rootViewController = [[UIViewController alloc] init];
UIViewController *modal = [[UIViewController alloc] init];
modal.view = rootView;
modal.modalPresentationStyle = UIModalPresentationFormSheet;
self.window.rootViewController = rootViewController;
[self.window makeKeyAndVisible];
[self.window.rootViewController presentViewController:modal animated:YES completion:nil]; Also, the warning message that you are getting is strange...mainly because in React Native the DevMenu is not using the So I am thinking that it is something else with your setup. As @brentvatne mentioned, if you could produce a sample project that would be very helpful. :) |
@brentvatne close and reopen if more information is provided. |
Reproduction:
UIViewController
withvc.modalPresentationStyle = UIModalPresentationFormSheet
I've run into this issue because I put a RootView into a modally presented formsheet, and wish to test solely that.
The text was updated successfully, but these errors were encountered: