We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba6f04d commit 3260863Copy full SHA for 3260863
ios/ReactNativePageView.m
@@ -178,6 +178,12 @@ - (void)setReactViewControllers:(NSInteger)index
178
if (self.reactPageViewController == nil) {
179
return;
180
}
181
+
182
+ NSArray *currentVCs = self.reactPageViewController.viewControllers;
183
+ if (currentVCs.count == 1 && [currentVCs.firstObject isEqual:controller]) {
184
+ return;
185
+ }
186
187
__weak ReactNativePageView *weakSelf = self;
188
uint16_t coalescingKey = _coalescingKey++;
189
0 commit comments