React-native-swiper: Block Swiping

Created on 16 Oct 2016  ·  3Comments  ·  Source: leecade/react-native-swiper

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)

Most helpful comment

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

All 3 comments

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

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

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

Was this page helpful?
0 / 5 - 0 ratings