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
..
2016-11-04 05:43:44 -07:00
2016-11-04 05:43:44 -07:00
2017-03-01 22:19:30 -08:00
2016-11-04 05:43:44 -07:00
2016-11-04 05:43:44 -07:00
2017-03-01 13:32:16 -08:00
2016-11-04 05:43:44 -07:00
2016-10-16 04:13:42 -07:00