react-navigation / react-navigation/react-navigation.github.io

I want to using gestureResponseDistance set half screen swipe back,but got a bug!

Open
#1,102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
324
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

env:

{
    "react-native": "0.64.0",
    "@react-navigation/stack": "^6.0.7",
}

code:

import {createStackNavigator} from '@react-navigation/stack';

const Stack = createStackNavigator<any>();

<Stack.Navigator>
  <Stack.Screen
        name={path.chatRoom}
        component={ChatRoom}
        options={{headerShown: false, gestureResponseDistance: windowWidth / 2}}
      />
</Stack.Navigator>

bug: see the Video

https://user-images.githubusercontent.com/33342225/147741916-d909fe9c-1c3e-4bcb-9d8b-0660d727c9d8.mp4

the Page stucked

Any solution?

Thanks in advance

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the provided React Native 0.64.0 and @react-navigation/stack 6.0.7 setup with gestureResponseDistance set to half the window width, using the linked video as the symptom reference. Compare the gesture behavior with the option unset and determine whether the page still becomes stuck; done means the half-screen swipe-back gesture works without trapping the page.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.