File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -184,17 +184,10 @@ - (void)setReactViewControllers:(NSInteger)index
184
184
if (animated == YES ) {
185
185
self.animating = YES ;
186
186
}
187
-
188
- //
189
- // If 'controller' is the current visible controller and the 'animated' flag is set to YES,
190
- // then 'setViewControllers' is called without invoking the completion handler. This can block the navigation from working.
191
- // So we need to check if that would be the case, and if so, we will not perform animation.
192
- //
193
- BOOL canAnimate = (controller != [[self .reactPageViewController viewControllers ] firstObject ] );
194
187
195
188
[self .reactPageViewController setViewControllers: @[controller]
196
189
direction: direction
197
- animated: canAnimate? animated: NO
190
+ animated: animated
198
191
completion: ^(BOOL finished) {
199
192
__strong typeof (self) strongSelf = weakSelf;
200
193
strongSelf.currentIndex = index;
You can’t perform that action at this time.
0 commit comments