react-native-navigation的迁移库

RNNBridgeManager.h 671B

123456789101112131415161718
  1. #import <Foundation/Foundation.h>
  2. #import <React/RCTBridge.h>
  3. #import "RNNBridgeManagerDelegate.h"
  4. typedef UIViewController * (^RNNExternalViewCreator)(NSDictionary* props, RCTBridge* bridge);
  5. @interface RNNBridgeManager : NSObject <RCTBridgeDelegate>
  6. - (instancetype)initWithJsCodeLocation:(NSURL *)jsCodeLocation launchOptions:(NSDictionary *)launchOptions bridgeManagerDelegate:(id<RNNBridgeManagerDelegate>)delegate mainWindow:(UIWindow *)mainWindow;
  7. - (void)registerExternalComponent:(NSString *)name callback:(RNNExternalViewCreator)callback;
  8. @property (readonly, nonatomic, strong) RCTBridge *bridge;
  9. - (void)setJSCodeLocation:(NSURL *)jsCodeLocation;
  10. @end