react-native-navigation的迁移库

ReactNativeNavigation.h 848B

12345678910111213141516171819202122232425
  1. #import <Foundation/Foundation.h>
  2. #import <UIKit/UIKit.h>
  3. #import <React/RCTBridge.h>
  4. #import <React/RCTUIManager.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<RCTBridgeDelegate>)delegate;
  9. + (void)bootstrapWithDelegate:(id<RCTBridgeDelegate>)bridgeDelegate launchOptions:(NSDictionary *)launchOptions;
  10. + (void)registerExternalComponent:(NSString *)name callback:(RNNExternalViewCreator)callback;
  11. + (UIViewController *)findViewController:(NSString *)componentId;
  12. + (void)setJSCodeLocation:(NSURL *)jsCodeLocation;
  13. + (RCTBridge *)getBridge;
  14. @end