mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 01:25:39 +00:00
500dd2cff3
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