react-native-navigation的迁移库

RNNBridgeManager.h 585B

12345678910111213141516
  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;
  7. - (void)registerExternalComponent:(NSString *)name callback:(RNNExternalViewCreator)callback;
  8. @property (readonly, nonatomic, strong) RCTBridge *bridge;
  9. @end