mirror of
https://github.com/status-im/react-native.git
synced 2025-02-23 22:58:19 +00:00
Summary: When a list is updated to have fewer items and the user immediately scrolls, the `ViewabilityHelper` `computeViewableItems` can be invoked from the scroll and cause a crash. This side effect *should* be relatively minor; the ViewabilityHelper shouldn't cause a crash, as it generally would be used for analytics to see what users are viewing. I suggest changing this to a warning instead of a crash. Other react-native developers seem to [also be getting this occasionally](https://github.com/facebook/react-native/issues/20289). Changelog: ---------- [General] [Fixed] - `Invalid render range` crash changed to warning when viewability helper detects an anomaly in list data. Pull Request resolved: https://github.com/facebook/react-native/pull/22847 Differential Revision: D13750031 Pulled By: cpojer fbshipit-source-id: 053d2baad208d1efe5b18b07ab10226032e665b8