12345678910111213141516171819202122232425 |
- #import "RNNBridgeModule.h"
- #import "RNNStore.h"
-
- #import "RNNControllerFactory.h"
-
- @implementation RNNBridgeModule
-
- RCT_EXPORT_MODULE(NativeNavigation);
-
- - (dispatch_queue_t)methodQueue
- {
- return dispatch_get_main_queue();
- }
-
- RCT_EXPORT_METHOD(startApp:(NSDictionary*)layout)
- {
- RCTBridge* bridge = RNNStore.sharedInstance.bridge;
-
- RNNStore.appDelegate.window.rootViewController = [RNNControllerFactory createRootViewController:layout];
- [RNNStore.appDelegate.window makeKeyAndVisible];
- }
-
- @end
-
|