react-native-navigation的迁移库

ReactNativeNavigation.m 632B

12345678910111213141516171819202122232425
  1. #import "ReactNativeNavigation.h"
  2. #import "RNNSplashScreen.h"
  3. #import "RNN.h"
  4. @implementation ReactNativeNavigation
  5. +(void)bootstrap:(NSURL *)jsCodeLocation
  6. {
  7. [ReactNativeNavigation bootstrap:jsCodeLocation launchOptions:nil];
  8. }
  9. +(void)bootstrap:(NSURL *)jsCodeLocation launchOptions:(NSDictionary *)launchOptions
  10. {
  11. UIApplication.sharedApplication.delegate.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
  12. UIApplication.sharedApplication.delegate.window.backgroundColor = [UIColor whiteColor];
  13. [RNNSplashScreen show];
  14. [RNN.instance bootstrap:jsCodeLocation launchOptions:launchOptions];
  15. }
  16. @end