react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930
  1. #import <React/RCTRootView.h>
  2. #import <React/RCTRootViewDelegate.h>
  3. #import "UIView+Utils.h"
  4. #import "RNNEventEmitter.h"
  5. #import <React/RCTUIManager.h>
  6. #define ComponentTypeScreen @"Component"
  7. #define ComponentTypeTitle @"TopBarTitle"
  8. #define ComponentTypeButton @"TopBarButton"
  9. #define ComponentTypeBackground @"TopBarBackground"
  10. typedef void (^RNNReactViewReadyCompletionBlock)(void);
  11. @interface RNNReactView : RCTRootView
  12. - (instancetype)initWithBridge:(RCTBridge *)bridge moduleName:(NSString *)moduleName initialProperties:(NSDictionary *)initialProperties eventEmitter:(RNNEventEmitter *)eventEmitter reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock;
  13. @property (nonatomic, copy) RNNReactViewReadyCompletionBlock reactViewReadyBlock;
  14. @property (nonatomic, strong) RNNEventEmitter* eventEmitter;
  15. - (NSString *)componentId;
  16. - (NSString *)componentType;
  17. - (void)componentDidAppear;
  18. - (void)componentDidDisappear;
  19. @end