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
Dynamic sticky headers crash natively (Android only) #25157
Comments
I have the same issue after upgrade to RN 59 |
@changLiuUNSW The problem wasn't in a previous version ? Do you know since version it appeared ? |
@yairopro I may only know which version is working fine, because the issue happened after upgrade from Expo 32 to Expo 33. Expo 32 is based on RN0.57.1. |
I just did some research, I believe the stickyHeaderIndices is totally not working for FlatList in Android. You can simply reproduce by creating a FlatList and set stickyHeaderIndices to any value |
I was trying to debug this and here are my observations:
Let me take a look into source of |
I can back up the observations @yeswanth did share. |
I found a temporary workaround for this issue. You can set |
@yeswanth: I stuck on this bug for 2 weeks, you've saved my life!!! Thanks |
@changLiuUNSW, I don't see any performance issue still now, it looks faster on long FlatList. |
@changLiuUNSW I should have mentioned it, you can set |
This is very strange, because the default value for |
If you look at
The problem (as I have observed) is occurring when |
@yeswanth I think you pretty much find the cause and can create a PR for them :) |
@yeswanth Also I just tried set |
Any solution for it? Because I don't want to set |
Facing same issue after upgrading to react native 0.60.3. App works fine on iOS but crashes on android when having huge data in flatlist. @yeswanth Thank you for the workaround. its working !!! https://facebook.github.io/react-native/docs/flatlist#removeclippedsubviews Any other solution ? considering performance. |
Faced with this. Temp solution: on Android return loader instead FlatList while items count is zero. Update: That don't work when data array is empty. |
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. |
It is still not working |
Maaaan Thaanks |
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. |
This comment has been minimized.
This comment has been minimized.
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. |
This comment has been minimized.
This comment has been minimized.
Still reproduced |
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. |
Still actual |
still an issue, however, setting removeClippedSubviews={false} helped as a hotfix |
still facing same issue |
Worked for me! |
still facing same issue |
Strangely, it works when I set |
still facing same issue |
please any fix for this aside from setting removeClippedSubviews={false} this issue has be open 3 years ago and still no fix for it |
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
This issue was closed because it has been stalled for 7 days with no activity. |
removeClippedSubviews={false} doesn't work for me. But I found another workaround that works well for me.
|
not sure why this issue get closed, when the issue still exist |
The FlatList crash natively when updating the
stickyHeaderIndices
prop.The purpose of my component is to fetch items, and display them inside a flatlist. Some of the loaded items need to be sticky. It's possible to know which ones only once they are loaded.
The problem is that it crashes when
stickyHeaderIndices
is updated at the same render the new data is added to the flatlist.See screenshot
Demo: https://snack.expo.io/SkfE8USRN
React Native version:
Steps To Reproduce
Describe what you expected to happen:
No crash.
The text was updated successfully, but these errors were encountered: