React Native, Navigation, Fabric, Swift, iOS.
presentedViewController = rootViewController.presentedViewController { return topViewControllerWithRootViewController(rootViewController: presentedViewController) } return rootViewController } } The critical issue here is finding the top rootViewController. For this, I used a code snippet from