12345678910111213141516171819202122232425262728 |
- #import <React/RCTRootView.h>
- #import <React/RCTRootViewDelegate.h>
- #import "RNNEventEmitter.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
|