react-navigation / react-navigation/react-navigation.github.io
I want to using gestureResponseDistance set half screen swipe back,but got a bug!
Open
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
the Page stucked
Any solution?
Thanks in advance
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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