In React Native project I want to access the Presented Viewcontroller from iOS npm module. I'm able to access the rootviewcontroller of the RN project using the below code
UIViewController *vc = [UIApplication sharedApplication].delegate.window.rootViewController;
But I want the current VC that is presented on top of RootVC so that I should be able to present native(iOS) UINavigationController on top of it.
Note:[UIApplication sharedApplication].delegate.window.rootViewController.presentedViewController
returns nill.