react-native-scrollable-tab-view icon indicating copy to clipboard operation
react-native-scrollable-tab-view copied to clipboard

ScrollableTabView component in which I have buttons

Open danielsledz opened this issue 4 years ago • 1 comments
trafficstars

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)

danielsledz avatar Oct 13 '21 16:10 danielsledz

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.

macashok81 avatar Nov 19 '21 12:11 macashok81