react-navigation.github.io icon indicating copy to clipboard operation
react-navigation.github.io copied to clipboard

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

Open zhaoaixu520 opened this issue 4 years ago • 0 comments

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

zhaoaixu520 avatar Dec 30 '21 10:12 zhaoaixu520