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

[@react-navigation/material-top-tabs] gestureResponseDistance does not work when top tabs nested within a stack navigator #1372

@krtejeda

Description

@krtejeda

Current behavior

Using the backwards swipe gesture to navigate backwards in the stack doesn't work if the swipe starts from inside the tab view content. The only time this gesture works is if the swipe starts on the tab bar itself or if swiping is disabled, likely because the gesture is not consumed in those instances.

Screen.Recording.2022-08-01.at.11.43.12.PM.mov

Expected behavior

I expect that if I swipe backwards on the content, especially if there is no other content the tab bar can swipe to, the stack should navigate backwards.

Reproduction

https://snack.expo.dev/Yq_J20P3b

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Environment

package version
react-native-tab-view 3.1.1
react-native-pager-view 5.4.25
react-native 0.68.1
expo 44.0.0
node 16.13.0
npm or yarn 8.5.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions