File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44@interface RNNSplashScreenViewController : UIViewController
55
66+ (void )showOnWindow : (UIWindow *)window ;
7- + (UIViewController*)getSplashScreen ;
7+ + (UIViewController*)getSplashScreenVC ;
88@end
Original file line number Diff line number Diff line change 55@implementation RNNSplashScreenViewController
66
77+ (void )showOnWindow : (UIWindow *)window {
8- UIViewController *viewController = [self getSplashScreen ];
8+ UIViewController *viewController = [self getSplashScreenVC ];
99 if (viewController != nil ) {
1010 id <UIApplicationDelegate> appDelegate = [UIApplication sharedApplication ].delegate ;
1111 appDelegate.window .rootViewController = viewController;
1212 [appDelegate.window makeKeyAndVisible ];
1313 }
1414}
1515
16- + (UIViewController*)getSplashScreen {
16+ + (UIViewController*)getSplashScreenVC {
1717 CGRect screenBounds = [UIScreen mainScreen ].bounds ;
1818 CGFloat screenScale = [UIScreen mainScreen ].scale ;
1919 UIViewController *viewController = nil ;
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ - (void)onJavaScriptWillLoad {
9999
100100- (void )onJavaScriptLoaded {
101101 RCTExecuteOnMainQueue (^{
102- UIApplication.sharedApplication .delegate .window .rootViewController = [RNNSplashScreenViewController getSplashScreen ];
102+ UIApplication.sharedApplication .delegate .window .rootViewController = [RNNSplashScreenViewController getSplashScreenVC ];
103103
104104 [self ->_commandsHandler setReadyToReceiveCommands: true ];
105105 // TODO: Refactor
You can’t perform that action at this time.
0 commit comments