You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug][FlatList] assigning object to viewabilityConfig prop in render method triggers error #16710
Use a flatlist with a viewabilityConfig.viewAreaCoveragePercentThreshold prop set to any value.
e.g: viewabilityConfig={{ viewAreaCoveragePercentThreshold: 50 }}.
Fixed this by setting the properties as a constant outside of the render method, but still not sure if these invariant checks should be doing equality checks by reference...
changed the title [-][FlatList] viewabilityConfig prop bug[/-][+][Bug][FlatList] assigning object to viewabilityConfig prop in render method triggers error[/+]on Nov 8, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.
I still have this issue despite setting the viewabilityConfig as a constant outside of my class. It happens when the app is refreshing or reloading. Please fix this asap.
Activity
eballeste commentedon Nov 7, 2017
@Vince0613 @sahrens
eballeste commentedon Nov 7, 2017
I'm guessing the objects in prop are not considered equal because they are recreated on each re-render?? Is this what's happening?
eballeste commentedon Nov 7, 2017
Fixed this by setting the properties as a constant outside of the render method, but still not sure if these invariant checks should be doing equality checks by reference...
[-][FlatList] viewabilityConfig prop bug[/-][+][Bug][FlatList] assigning object to viewabilityConfig prop in render method triggers error[/+]stale commentedon Jan 7, 2018
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Maybe the issue has been fixed in a recent release, or perhaps it is not affecting a lot of people. If you think this issue should definitely remain open, please let us know why. Thank you for your contributions.
smithaitufe commentedon Jan 30, 2018
I still have this issue despite setting the viewabilityConfig as a constant outside of my class. It happens when the app is refreshing or reloading. Please fix this asap.
rikur commentedon Feb 24, 2018
Please re-open, this is still an issue. I second that it shouldn't be checked by reference.