Skip to content

Commit

Permalink
fix(ios): Fix adding new page after pager is mounted (#898)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRefactor authored Nov 5, 2024
1 parent 65c44c8 commit 77f5e64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ios/LEGACY/Fabric/LEGACY_RNCPagerViewComponentView.mm
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ - (void)willMoveToSuperview:(UIView *)newSuperview {
- (void)mountChildComponentView:(UIView<RCTComponentViewProtocol> *)childComponentView index:(NSInteger)index {
UIViewController *wrapper = [[UIViewController alloc] initWithView:childComponentView];
[_nativeChildrenViewControllers insertObject:wrapper atIndex:index];
[self goTo:_currentIndex animated:NO];
}

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

0 comments on commit 77f5e64

Please sign in to comment.