React-Native-ViewPager icon indicating copy to clipboard operation
React-Native-ViewPager copied to clipboard

horizontalScroll=false not working in ios

Open rezonn67250 opened this issue 7 years ago • 4 comments

I have done horizontalScroll=fasle horizontal scroll is off in Android but i can still swipe through views horizontally in IOS

rezonn67250 avatar Feb 01 '18 11:02 rezonn67250

Fixed it by replacing line 91 in ViewPager.js; it now says: scrollEnabled: this.props.horizontalScroll ? true : false, Basically pagingEnabled handles whether the scroll should snap to pages and scrollEnabled handles whether you can scroll with touch.

Doychev avatar Feb 13 '18 09:02 Doychev

Thank @Doychev it works :D hope this fix will be in the next version :D

huy-lv avatar Jun 19 '18 09:06 huy-lv

#143 shows how to resolve this issue on iOS.

tonycoco avatar Aug 13 '18 18:08 tonycoco

wow thanks @Doychev it works on my Android and IOS now :))

jhontech32 avatar Feb 01 '19 08:02 jhontech32