New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable gesture on navigator avoid to scroll horizontally on sub screen scrollview #10889
Comments
I had the same problem |
I had a similar problem. I fixed the scrolling by using another ScrollView - |
I have this same issue, but I'm using |
It is really important for me |
@vadamk did you try oskargotte solution? |
Summary: This fixes [ENG-2845](https://linear.app/comm/issue/ENG-2845/cant-scroll-chatlist-on-android), which I introduced in D6331. It looks like `gestureEnabled` breaks scrolling on Android. I found a [ton](react-navigation/react-navigation#10577 (comment)) of [GitHub](react-navigation/react-navigation#10889 (comment)) issues [discussing](software-mansion/react-native-gesture-handler#1775 (comment)) this, and the solution in all of them was to use `FlatList` from `react-native-gesture-handler`. In this diff I went through every `FlatList` or `ScrollView` used in a `StackNavigator` where we have introduced `gestureEnabled` in D6331 (`Chat` and `Profile`), and I switched them to use `FlatList` from `react-native-gesture-handler`. Test Plan: 1. First, I ran `git grep ScrollView` and `git grep FlatList` in `native/chat` and `native/profile` to try to find any examples of cases that needed to be changed 2. I deployed the app to a physical Android device to verify that scrolling still worked for all of the interfaces I fixed up Reviewers: max, inka, tomek, bartek, przemek, kamil Reviewed By: tomek Subscribers: atul Differential Revision: https://phab.comm.dev/D6417
All StackNavigator modals suffer from this issue on Android.
I upgraded everything to latest versions:
|
This worked for me: |
not sure why, but the slider doesn't work when the screen has gestureDirection set to vertical. some other people have this problem with just scrolling horizontally in general react-navigation/react-navigation#10889.
* make full size music player full screen * reduce size of artwork image * animate album artwork on back and forward clicks * prevent negative numbers * fix song seeking not sure why, but the slider doesn't work when the screen has gestureDirection set to vertical. some other people have this problem with just scrolling horizontally in general react-navigation/react-navigation#10889. * prevent users from clicking buttons too fast not the ideal solutions, but that's what the devs from expo-av suggest. expo/expo#11387
Any updates?
I have the same issue |
I was facing the same problem Apply the code below The dependent module react-native-tab-view has been modified. node_modules/react-native-tab-view/src/TabView.tsx
node_modules/react-native-tab-view/src/PanResponderAdapter.tsx
if necessary, use patch-package |
@fizhy37 I have found the following patch to somewhat fix this issue on Android:
You can use |
Did you find a solution? |
Hello did someone find a solution ? I am use |
Current behavior
On a sub screen, when I enable
gestureEnabled
on Navigator, I can't scroll on a horizontal ScrollView.This problem occurs only on Android.
Expected behavior
Get the same behavior of View.
Can scroll on horizontal ScrollView and go to the previous screen if I swipe to the very left of the screen.
Reproduction
https://github.com/TomCorvus/RNavigationScroll.git
Platform
Packages
Environment
The text was updated successfully, but these errors were encountered: