-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Nested FlatList does not scroll #15375
Comments
same here, any updates??? |
+1 |
1 similar comment
+1 |
I have the same issue, but I didn't know that it worked on 0.44. Hopefully, someone will come up with a workaround. This definitely works when the nested |
Anyone find any solutions or hack-arounds? I'm facing the same issue |
I have the same issue |
For me it works after adding |
Same issue for me. I've noticed that the complete content of the inner FlatList appears to render outside of the bounds of the FlatList itself, and therefore no scrolling occurs as it has all been rendered. I noticed this by hiding some of the elements after the nested FlatList element. |
+1 |
From documentation: "Also inherets ScrollView Props, unless it is nested in another FlatList of same orientation", https://facebook.github.io/react-native/docs/0.48/flatlist.html |
+1 same issue. |
#18299 aims to fix this issue on Android 21 and above. |
@alex1815 Hey I read that too, but I don't quite understand the implications, do you? So a nested FlatList doesn't inherit ScrollView props, does that mean it's not possible for the FlatList to scroll independent from the outer ScrollView? |
+1 |
+1 |
Any fix for this? |
+1 |
1 similar comment
+1 |
I am still facing this issue. Any solution for this problem? |
+1 |
I had the same issue, I resolved this by giving my Parent View, style: {{flex: 1}}, give the same style of flex 1 to all the views that on the top of your flatlist. |
In my case, it works adding a height, style: {{ height }}. |
Could you guys @Danishkhan007 or @vitorolivg post some working code please ? I'm currently pulling my hair off with this workaround... |
@MarcBrout did you try "nestedScrollEnabled" prop in ScrollView (available in react-native 0.56.0+) |
@tuncaulubilge I can't upgrade my project to 0.56.0 right now, but I implemented this workaround #1966 (comment) and it works out ! |
+1 |
@MarcBrout outer component is scrollview ,if i replaced with flatlist , nested flatlist cant work |
Any update on this? |
+1 |
1 similar comment
+1 |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Is this a bug report?
Yes
Have you read the Bugs section of the How to Contribute guide?
Yes
Environment
react-native -v
:react-native-cli: 2.0.1
react-native: 0.47.1
node -v
:v7.10.0
npm -v
:v7.10.0
yarn --version
:0.27.5
Then, specify:
Build tools: Not using Xcode nor Android Studio to build native code. Have only tried this on Android.
Comments: This worked fine with RN 0.44 until yesterday when I updated to RN 0.47 and I noticed that the sublists on my app stopped working.
Steps to Reproduce
(Write your steps here:)
Expected Behavior
Both lists (parent and children) would be able to scroll (as it did with RN v0.44)
Actual Behavior
Only the parent FlatList scrolls.
Reproducible Demo
https://snack.expo.io/HJSueSfPZ
The text was updated successfully, but these errors were encountered: