react-native-swiper icon indicating copy to clipboard operation
react-native-swiper copied to clipboard

Block Swiping

Open nicolabortignon opened this issue 8 years ago • 4 comments

Is it possible to disable completely the interaction with the gallery

(an example is to programmatically block the user in one stage of the swipable gallery until he/she finishes a task)

nicolabortignon avatar Oct 16 '16 14:10 nicolabortignon

Since Swiper extends ScrollView, you can use state to enable/disable scroll, by using the scrollEnabled={false} prop.

fostertime avatar Oct 19 '16 20:10 fostertime

Can you enabe/disable this without rerendering this component? My aim is to have the swiper enabled until last slide -> there i want to disable swiping, because user has to do something inside which has also a Scrollview in it. Using both mixes up the interaction…

thx

patricktresp avatar Jan 23 '17 13:01 patricktresp

what about blocking the user swiping in a certain direction ? Like he can go right, but not left

teod avatar Dec 19 '18 13:12 teod

@teod any luck?

ithustle avatar Jan 03 '22 11:01 ithustle