Skip to content

Commit 313e703

Browse files
troZeeferrannp
authored andcommitted
fix: scrollEnabled prop, when comp is loaded dynamically (#102)
1 parent 7fbc9c8 commit 313e703

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ios/ReactNativePageView.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ - (void)embed {
299299
_reactPageViewController.view.frame = [self bounds];
300300

301301
[_reactPageViewController didMoveToParentViewController:[self reactViewController]];
302+
[self shouldScroll:_scrollEnabled];
302303

303304
// Add the page view controller's gesture recognizers to the view controller's view so that the gestures are started more easily.
304305
self.gestureRecognizers = _reactPageViewController.gestureRecognizers;

0 commit comments

Comments
 (0)