react-native/Libraries/CustomComponents/ListView
Spencer Ahrens 500dd2cff3 Fix bug with sticky headers that listen to onLayout
Summary:
Wrapping them in ScrollViewStickyHeader broken the onLayout and would always give y = 0
because it is now relative to the wrapper.

This uses some not-so-great react magic, but fixes the bugs with no aparent side-effects.

Note we also need to kill the StaticRenderer wrapper that ListView introduces. I think this was
probably a premature optimization anyway since there are usually not many headers and they are
usually pretty cheap to render. If people care, they can use `shouldComponentUpdate` with the
rendered components.

Reviewed By: yungsters

Differential Revision: D4654622

fbshipit-source-id: 1ea557ef64327d1f4df53b22fedd678da1549288
2017-03-03 20:15:38 -08:00
..
__mocks__ Include props in new ListView and ScrollView mocks 2017-01-12 10:58:29 -08:00
ListView.js Fix bug with sticky headers that listen to onLayout 2017-03-03 20:15:38 -08:00
ListViewDataSource.js Cleanup: Remove `@typechecks` 2016-10-12 19:28:42 -07:00