|
@@ -377,6 +377,14 @@ RCT_EXPORT_METHOD(
|
377
|
377
|
{
|
378
|
378
|
return [self getVisibleViewControllerFor:vc.presentedViewController];
|
379
|
379
|
}
|
|
380
|
+ else if ([vc isKindOfClass:[TheSidebarController class]]) {
|
|
381
|
+ TheSidebarController *drawerController = (TheSidebarController*) vc;
|
|
382
|
+ return [self getVisibleViewControllerFor:drawerController.contentViewController];
|
|
383
|
+ }
|
|
384
|
+ else if ([vc isKindOfClass:[MMDrawerController class]]) {
|
|
385
|
+ MMDrawerController *drawerController = (MMDrawerController*) vc;
|
|
386
|
+ return [self getVisibleViewControllerFor:drawerController.centerViewController];
|
|
387
|
+ }
|
380
|
388
|
else
|
381
|
389
|
{
|
382
|
390
|
return vc;
|