Skip to content

Commit 1c8d24a

Browse files
ozgursoyPiotr Trocki
authored andcommitted
fix(ios): view hierarchy inconsistency (#175)
1 parent c75e0f8 commit 1c8d24a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/ReactNativePageView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ - (void)setReactViewControllers:(NSInteger)index
375375

376376
- (UIViewController *)createChildViewController:(UIView *)view {
377377
UIViewController *childViewController = [[UIViewController alloc] init];
378-
childViewController.view = view;
378+
[childViewController.view addSubview: view];
379379
return childViewController;
380380
}
381381

0 commit comments

Comments
 (0)