Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Pressing on Segment Tab is not working when the Segmented Control is wrapped under TapGestureHandler #886

Copy link
Copy link
@fbele

Description

@fbele
Issue body actions

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.

alexcoady

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.