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

ScrollableTabView component in which I have buttons #1159

Open
danielsledz opened this issue Oct 13, 2021 · 1 comment
Open

ScrollableTabView component in which I have buttons #1159

danielsledz opened this issue Oct 13, 2021 · 1 comment

Comments

@danielsledz
Copy link

Hi, I have a ScrollableTabView component in which I have buttons. When sometimes I want to scroll to another tab I accidentally click the button that opens a new window.
Is there any easy/sensible way to solve this problem? Interrupt the onPress function if the card changes or something similar?

ezgif com-gif-maker (1)

@macashok81
Copy link

I was kind of facing similar issue. I had a Touchable Opacity in the Tab children and when swiping between Tabs, it would end up clicking the card. I solved it by

import {TouchableOpacity } from 'react-native-gesture-handler'.

Using it from the react native gesture handler solves it.

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

No branches or pull requests

2 participants