react-native-navigation的迁移库

ReactNativeNavigation.h 695B

123456789101112131415161718192021
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import <React/RCTBridge.h>
  4. #import "RNNBridgeManagerDelegate.h"
  5. typedef UIViewController * (^RNNExternalViewCreator)(NSDictionary* props, RCTBridge* bridge);
  6. @interface ReactNativeNavigation : NSObject
  7. + (void)bootstrap:(NSURL *)jsCodeLocation launchOptions:(NSDictionary *)launchOptions;
  8. + (void)bootstrap:(NSURL *)jsCodeLocation launchOptions:(NSDictionary *)launchOptions bridgeManagerDelegate:(id<RNNBridgeManagerDelegate>)delegate;
  9. + (void)registerExternalComponent:(NSString *)name callback:(RNNExternalViewCreator)callback;
  10. + (UIViewController *)findViewController:(NSString *)componentId;
  11. + (RCTBridge *)getBridge;
  12. @end