Open
Description
The tapping on control segmented button (tab) stops working when wrapped with TapGestureHandler, for example:
<GestureHandlerRootView style={$gestureHandlerRootView}>
<TapGestureHandler onBegan={resetInactivityTimer}>
<View style={$gestureHandlerWrapper}>
<SegmentedControl
values={['Tab 1', 'Tab 2']}
selectedIndex={selectedSegmentIndex}
onChange={(event) => {
handleSegmentChange(event.nativeEvent.selectedSegmentIndex)
}}
/>
</View>
</TapGestureHandler>
</GestureHandlerRootView>
If you slide it it will still work, but that is not a nice UX.
Metadata
Metadata
Assignees
Labels
No labels