123456789101112131415161718192021222324252627282930 |
- #import <React/RCTRootView.h>
- #import <React/RCTRootViewDelegate.h>
- #import "UIView+Utils.h"
- #import "RNNEventEmitter.h"
- #import <React/RCTUIManager.h>
-
- #define ComponentTypeScreen @"Component"
- #define ComponentTypeTitle @"TopBarTitle"
- #define ComponentTypeButton @"TopBarButton"
- #define ComponentTypeBackground @"TopBarBackground"
-
- typedef void (^RNNReactViewReadyCompletionBlock)(void);
-
- @interface RNNReactView : RCTRootView
-
- - (instancetype)initWithBridge:(RCTBridge *)bridge moduleName:(NSString *)moduleName initialProperties:(NSDictionary *)initialProperties eventEmitter:(RNNEventEmitter *)eventEmitter reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock;
-
- @property (nonatomic, copy) RNNReactViewReadyCompletionBlock reactViewReadyBlock;
- @property (nonatomic, strong) RNNEventEmitter* eventEmitter;
-
- - (NSString *)componentId;
-
- - (NSString *)componentType;
-
- - (void)componentDidAppear;
-
- - (void)componentDidDisappear;
-
- @end
|