Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ios/RCCManagerModule.m
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,14 @@ - (UIViewController *) getVisibleViewControllerFor:(UIViewController *)vc
{
return [self getVisibleViewControllerFor:vc.presentedViewController];
}
else if ([vc isKindOfClass:[TheSidebarController class]]) {
TheSidebarController *drawerController = (TheSidebarController*) vc;
return [self getVisibleViewControllerFor:drawerController.contentViewController];
}
else if ([vc isKindOfClass:[MMDrawerController class]]) {
MMDrawerController *drawerController = (MMDrawerController*) vc;
return [self getVisibleViewControllerFor:drawerController.centerViewController];
}
else
{
return vc;
Expand Down
2 changes: 1 addition & 1 deletion ios/RCCNavigationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ - (instancetype)initWithProps:(NSDictionary *)props children:(NSArray *)children

RCCViewController *viewController = [[RCCViewController alloc] initWithComponent:component passProps:passProps navigatorStyle:navigatorStyle globalProps:globalProps bridge:bridge];
if (!viewController) return nil;
viewController.controllerId = props[@"id"];
viewController.controllerId = passProps[@"screenInstanceID"];

NSArray *leftButtons = props[@"leftButtons"];
if (leftButtons)
Expand Down