mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
052617611d
Summary: FillRateHelper accesses frame metrics based on passed state/cellsAroundViewport on scroll. cellsAroundViewport may be [0, -1] for no items. Usually this is captured by the check that item count is zero, but it is possible to have items without yet expanding state to render the items. This adds a check to bail early if we are not yet rendering any viewport-related cells. Also renamed "state" to "cellsAroundViewport" for more consistent naming with the new list, where it is no longer the only state. Reviewed By: javache Differential Revision: D39345705 fbshipit-source-id: 198ab46ff2c8e8fe64076c9150edd4914dd745d7