react-native/Libraries/Lists
Mike Lambert 1ee602b655 Fix problems if _updateCellsToRender gets called too early
Summary:
(prior to the scroll metrics being set up, or prior to the view being scrolled to the right location).

I'm using a StackNavigator to push a FlatList secondary screen, and it was causing extraneous rendering (item X ->item 0 -> item X)

I've logged inside the render functions of my `renderItem` function, and verified that it no longer attempts to render item 0 anymore. And I've verified from the `VirtualizedList.state` no longer renders a `{first: 0, last: 0}`, but persistently stays at `{first: X, last: X}` from start until things stabilize.
Closes https://github.com/facebook/react-native/pull/14562

Reviewed By: bvaughn

Differential Revision: D5283771

Pulled By: sahrens

fbshipit-source-id: 0f70ac0b89922449bd20bfa69edbc8939eafdf1f
2017-06-22 18:48:19 -07:00
..
ListView prettier 2017-06-12 22:45:49 -07:00
__flowtests__ prettier 2017-06-12 22:45:49 -07:00
__tests__ remove disableAutomock from jest tests (new default) @bypass-lint 2017-06-13 15:04:09 -07:00
FillRateHelper.js prettier 2017-06-12 22:45:49 -07:00
FlatList.js Add setNativeProps 2017-06-20 09:34:55 -07:00
MetroListView.js Add setNativeProps 2017-06-20 09:34:55 -07:00
SectionList.js Fix typo 2017-06-22 11:16:17 -07:00
ViewabilityHelper.js prettier 2017-06-12 22:45:49 -07:00
VirtualizeUtils.js prettier 2017-06-12 22:45:49 -07:00
VirtualizedList.js Fix problems if _updateCellsToRender gets called too early 2017-06-22 18:48:19 -07:00
VirtualizedSectionList.js prettier 2017-06-12 22:45:49 -07:00