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

how disable touch drag

Open tazaka opened this issue 8 years ago • 4 comments

i need disable drag to next slide . I using ref set _goToNextPage

tazaka avatar Aug 30 '17 13:08 tazaka

set scrollEnabled ={false}

zbtang avatar Aug 31 '17 02:08 zbtang

Apparently it changed to horizontalScroll={false} as of now. Needs documentation update.

saalihou avatar Dec 17 '17 21:12 saalihou

As of Nov 2019, scrollEnabled ={false} only works.

horizontalScroll={false} is not working at all.

rohitpaniker avatar Nov 14 '19 15:11 rohitpaniker

As of July 12, 2021, it seems that the solution that works is the combination of both answers: For android operating system use horizontalScroll={false} For iOs operating system use scrollEnabled ={false}

Edit: for better solution follow this answer: https://github.com/zbtang/React-Native-ViewPager/issues/116#issuecomment-365211148 I hope it helps!

Ollebacx avatar Jul 12 '21 10:07 Ollebacx