Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable scrolling backwards #98

Open
Tzikas opened this issue Dec 3, 2020 · 1 comment
Open

Disable scrolling backwards #98

Tzikas opened this issue Dec 3, 2020 · 1 comment

Comments

@Tzikas
Copy link

Tzikas commented Dec 3, 2020

Is there any prop or way I can enable or disable the user swiping. I see that hiding that buttons is an option, but I would also like to disable swiping if a certain condition isn't met. Is there an option to do this? Also disabling swiping in any one direction would also be cool. (i.e I could swipe right, but not left)

Awesome module by the way 🥇

@Tzikas
Copy link
Author

Tzikas commented Dec 3, 2020

I think this handles it flatlistProps={{ scrollEnabled: false }}. #22. Is there anyway I can only disable moving forward but allow scrolling backwards?

@Tzikas Tzikas changed the title Is there a way to disable/enable swiping? Is there a way to disable/enable swiping or only allow one direction swiping? Dec 3, 2020
@jfilter jfilter changed the title Is there a way to disable/enable swiping or only allow one direction swiping? Disable scrolling backwards Jan 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants