react-native-navigation的迁移库

RNNReactView.h 899B

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