react-native/Libraries/Lists
Logan Daniels a010a0cebd Fix virtualized cell keys for list headers and footers
Summary:
The change enabling virtualization in nested lists contained a hidden assumption that nested lists would only appear within the *cells* of a parent list.

If a list header or footer component contains a `VirtualizedList`, that child list won't be wrapped in a `CellRenderer` component and therefore won't have access to `virtualizedCellRenderer` through its context. This causes an error when the child list tries to access the `cellKey` property on an undefined object.

This change wraps the header/footer views in a `VirtualizedCellWrapper` component which supplies that context properly.

Reviewed By: sahrens

Differential Revision: D6603342

fbshipit-source-id: 4d2d82f04947048a16ec9968121d8ecc8c95655a
2017-12-19 13:46:49 -08:00
..
ListView Flow 0.59 xplat/js deploy 2017-11-10 21:15:48 -08:00
__flowtests__ Codemod to 1.7.0 2017-09-26 23:45:48 -07:00
__tests__ Update Jest to 21.3.0-beta.8 2017-11-08 07:03:30 -08:00
FillRateHelper.js Change all calls to no-console from no-console-disallow 2017-09-29 16:38:06 -07:00
FlatList.js export SeparatorsObj type for re-use in ListItems etc. 2017-11-29 10:53:51 -08:00
MetroListView.js @allow-large-files Flow 0.58 upgrade for xplat/js 2017-11-02 10:51:14 -07:00
SectionList.js Fixed homogenous typo 2017-10-13 00:15:42 -07:00
ViewabilityHelper.js Upgrade to 1.9.1 2017-12-06 17:34:26 -08:00
VirtualizeUtils.js Support virtualization and onViewableItemsChanged for nested, same-orientation VirtualizedLists 2017-12-18 13:32:35 -08:00
VirtualizedList.js Fix virtualized cell keys for list headers and footers 2017-12-19 13:46:49 -08:00
VirtualizedSectionList.js Codemod to 1.7.0 2017-09-26 23:45:48 -07:00