-
Notifications
You must be signed in to change notification settings - Fork 292
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
[bug][ios]: using getItemType causes blanks and overlapping items #600
Comments
@hirbod I looked into this and it seems like |
@naqvitalha yes, I am able to reproduce this. The random value was only for demonstration. It also happens when I just have 2 different types. (like in my app) It does not happen when both types have different dimensions, only when you have different types with same item dimensions - at least thats my guess. |
@naqvitalha we had reports in the Discord group that this issue can even randomly occur even without the use of getItemType. So it just might be a coincidence or there is a general issue that can happen |
Hi @hirbod what did you do to fix this? Currently experiencing this in our app |
For me the only fix was to omit getItemType |
Hey, |
I think we have finally figured this out. More updates soon. This was a tough one. |
Is this fixed? Still happening with me on version 1.6.1 |
Current behavior
Using
getItemType
causes blanks and overlapping items.I reproduced a bug where using getItemType causes blanks and overlapping items. This does only happen when using different types but the elements having the same height. In my Expo Snack, just using two types (e.g "header" and "row" does not break), since header and row have different heights. But I used different types (in my real app) because the items have different icons and styling, so I tried to add more types in order to optimize renders. While I could just use two types to "fix" this issue, getItemType should never cause this blanks, even when the items have the same height.
RPReplay_Final1663187328.mp4
I was only able to reproduce this on iOS, but honestly haven't tried android enough. It is not breaking on web.
Expected behavior
Should not cause blanks and overlapping items
To Reproduce
https://snack.expo.dev/@hirbod/getitemtype-failing
Platform:
Environment
Happens on iOS (bare react-native and expo, 1.1.0 and 1.2.1)
The text was updated successfully, but these errors were encountered: