react-native/Libraries/Lists
ashoat 803a9168f2 Pass data prop instead of props to _updateViewableItems in _onScroll
Summary:
This is a simple bugfix. `_updateViewableItems` expects the `data` prop, as it calls `getItemCount` on it. Without this, `onViewableItemsChanged` updates twice for each scroll position, once from `_onScroll` with the incorrect results, and once from `_updateCellsToRender` with the correct results. This means the callback nigh-on unusable.

I simply logged the results of `onViewableItemsChanged` and made sure they were correct.
Closes https://github.com/facebook/react-native/pull/14162

Differential Revision: D5128363

Pulled By: sahrens

fbshipit-source-id: 3faef812068921a26ed871339da79870fd0d911c
2017-05-25 03:15:22 -07:00
..
ListView Ran PropTypes -> prop-types codemod against Libraries/FBReactKit/js/react-native-github 2017-04-12 16:15:15 -07:00
__flowtests__ Re-License Lists with standard React Native License 2017-03-24 14:31:19 -07:00
__tests__ Add ListEmptyComponent prop 2017-05-04 00:16:25 -07:00
FillRateHelper.js Many improvements 2017-04-25 14:50:14 -07:00
FlatList.js Correcting a mistake in the minimal example in the FlatList doc 2017-05-05 11:49:26 -07:00
MetroListView.js Fix react-native function call arity errors 2017-05-18 16:55:55 -07:00
SectionList.js Add ListEmptyComponent prop 2017-05-04 00:16:25 -07:00
ViewabilityHelper.js Re-License Lists with standard React Native License 2017-03-24 14:31:19 -07:00
VirtualizeUtils.js Many improvements 2017-04-25 14:50:14 -07:00
VirtualizedList.js Pass data prop instead of props to _updateViewableItems in _onScroll 2017-05-25 03:15:22 -07:00
VirtualizedSectionList.js Fix react-native function call arity errors 2017-05-18 16:55:55 -07:00