瀏覽代碼

exposed bridge in ReactNativeNavigation

yogevbd 6 年之前
父節點
當前提交
ee48da2e7c
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      lib/ios/RNNControllerFactory.m

+ 1
- 1
lib/ios/RNNControllerFactory.m 查看文件

@@ -97,7 +97,7 @@
97 97
 	RNNRootViewController* component = [[RNNRootViewController alloc] initWithName:name withOptions:options withComponentId:componentId rootViewCreator:_creator eventEmitter:_eventEmitter isExternalComponent:NO];
98 98
 	if (!component.isCustomViewController) {
99 99
 		CGSize availableSize = UIApplication.sharedApplication.delegate.window.bounds.size;
100
-		[_bridge.uiManager setAvailableSize:availableSize forRootView:component.view];
100
+		[_bridge.uiManager setAvailableSize:availableSize forRootView:component.reactView];
101 101
 	}
102 102
 	return component;
103 103
 }