seansy e011c4c0e2 Fixes 'Invalid render range' crash (#22847)
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
2019-01-21 01:58:54 -08:00
..
2018-12-11 20:01:00 -08:00
2018-12-04 19:32:36 -08:00
2019-01-17 02:41:59 -08:00
2018-12-11 20:01:00 -08:00
2018-10-31 01:37:26 -07:00
2019-01-03 03:43:26 -08:00
2018-09-27 14:18:31 -07:00
2019-01-10 12:52:02 -08:00
2018-11-26 06:28:24 -08:00