mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-12 22:50:10 +08:00
Summary: Fixes https://github.com/facebook/react-native/issues/23453 Fixes https://github.com/facebook/react-native/issues/21196 Basically, changes made in https://github.com/facebook/react-native/pull/21496 currently breaks behavior of `<VirtualizedList />` and any components that are based on it (`<SectionList />, <FlatList />`). This PR solves both issues listed above. Visual confirmation of the resolved issue: **Vertical, not inverted, not empty**  **Vertical, not inverted, empty**  **Vertical, inverted, not empty**  **Vertical, inverted, empty**  **Horizontal, not inverted, not empty**  **Horizontal, not inverted, empty**  **Horizontal, inverted, not empty**  **Horizontal, inverted, empty**  [General] [Fixed] - Fixed VirtualizedList, SectionList and FlatList behavior on rendering list headers with inverted prop and zero items Pull Request resolved: https://github.com/facebook/react-native/pull/24167 Differential Revision: D14642345 Pulled By: cpojer fbshipit-source-id: b530bbbd57f60e53a976ac5db272ea4b2d2b3e99