react-native-navigation的迁移库

RNNComponentRootView.m 676B

12345678910111213141516
  1. #import "RNNComponentRootView.h"
  2. @implementation RNNComponentRootView
  3. - (instancetype)initWithBridge:(RCTBridge *)bridge moduleName:(NSString *)moduleName initialProperties:(NSDictionary *)initialProperties eventEmitter:(RNNEventEmitter *)eventEmitter reactViewReadyBlock:(RNNReactViewReadyCompletionBlock)reactViewReadyBlock {
  4. self = [super initWithBridge:bridge moduleName:moduleName initialProperties:initialProperties eventEmitter:eventEmitter reactViewReadyBlock:reactViewReadyBlock];
  5. [bridge.uiManager setAvailableSize:UIScreen.mainScreen.bounds.size forRootView:self];
  6. return self;
  7. }
  8. - (NSString *)componentType {
  9. return ComponentTypeScreen;
  10. }
  11. @end