react-native-navigation的迁移库

RNNBridgeModule.m 469B

1234567891011121314151617181920212223
  1. #import "RNNBridgeModule.h"
  2. #import "RNN.h"
  3. #import "RNNControllerFactory.h"
  4. @implementation RNNBridgeModule
  5. RCT_EXPORT_MODULE();
  6. - (dispatch_queue_t)methodQueue
  7. {
  8. return dispatch_get_main_queue();
  9. }
  10. RCT_EXPORT_METHOD(startApp:(NSDictionary*)layout)
  11. {
  12. UIApplication.sharedApplication.delegate.window.rootViewController = [[RNNControllerFactory new] createRootViewController:layout];
  13. [UIApplication.sharedApplication.delegate.window makeKeyAndVisible];
  14. }
  15. @end