Skip to content

Commit 5e969ec

Browse files
authored
fix(ios): Fix on add new dynamic page (#923)
1 parent ae57d70 commit 5e969ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/LEGACY/Fabric/LEGACY_RNCPagerViewComponentView.mm

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ - (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childCompone
9595
UIViewController *vc = [UIViewController new];
9696
[vc.view addSubview:childComponentView];
9797
[_nativeChildrenViewControllers insertObject:vc atIndex:index];
98+
[self goTo:_currentIndex animated:NO];
9899
}
99100

100101
- (void)unmountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index {

0 commit comments

Comments
 (0)