Skip to content
This repository has been archived by the owner on Nov 27, 2022. It is now read-only.

Swipe gesture triggering onPress (revisited) #1045

Closed
Aryk opened this issue Jul 8, 2020 · 8 comments
Closed

Swipe gesture triggering onPress (revisited) #1045

Aryk opened this issue Jul 8, 2020 · 8 comments
Labels

Comments

@Aryk
Copy link

Aryk commented Jul 8, 2020

I'm still getting this issue that was reported in #550.

When I swipe between tabs, anything that responds to onPress is subject to getting "pressed" and I don't believe I have access to the controls to disable it.

I'm on 2.14.0 and curious if anyone is experiencing this issue or if I overlooked a setting on how to prevent touch events while swiping.

react-native-tab-view: 2.14.0
react-native-gesture-handler: ~1.6.0
react-native-reanimated: ~1.9.0

@Aryk Aryk added the bug label Jul 8, 2020
@github-actions
Copy link

github-actions bot commented Jul 8, 2020

Couldn't find version numbers for the following packages in the issue:

  • react-native-tab-view
  • react-native-gesture-handler
  • react-native-reanimated
  • ``

Can you update the issue to include version numbers for those packages? The version numbers must match the format 1.2.3.

@Aryk
Copy link
Author

Aryk commented Jul 9, 2020

I updated it

@Aryk
Copy link
Author

Aryk commented Jul 9, 2020

never mind, using ScrollPager fixes the issue

@Aryk Aryk closed this as completed Jul 9, 2020
@chazzaoui
Copy link

Hi!

Currently experiencing the same issue.. How did you end up solving it?

I see you mentioning scrollpager. You mean the React-native-Pager-view?

@IsmetGlumcevic
Copy link

I have the same issue. Is this issue with scrollview/flatlist or tab view?

@IsmetGlumcevic
Copy link

everything works with react-native-pager-view v4, tab bar is very slow...

@darrychen92
Copy link

Have you fixed it? I have the same issue with v3.1.1

@vinayr
Copy link

vinayr commented Jan 11, 2022

Using TouchableOpacity from react-native-gesture-handler solves the issue for me.
ptomasroos/react-native-scrollable-tab-view#1159 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

5 participants