react-native-macos/Libraries/Lists
michalchudziak c13f5d48cf Fix behaviour of Header, Footer and Empty List components in VirtualizedList when it's inverted (#24167)
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**
![image](https://user-images.githubusercontent.com/7837457/55076839-b005d700-5096-11e9-91de-090934cb0129.png)

**Vertical, not inverted, empty**
![image](https://user-images.githubusercontent.com/7837457/55076971-fb1fea00-5096-11e9-8d73-5a2d86275da8.png)

**Vertical, inverted, not empty**
![image](https://user-images.githubusercontent.com/7837457/55077042-23a7e400-5097-11e9-911f-9dad4d48a578.png)

**Vertical, inverted, empty**
![image](https://user-images.githubusercontent.com/7837457/55079957-87351000-509d-11e9-8f1c-b7134f1f43f9.png)

**Horizontal, not inverted, not empty**
![image](https://user-images.githubusercontent.com/7837457/55077118-44703980-5097-11e9-94e9-e33d4af436ee.png)

**Horizontal, not inverted, empty**
![image](https://user-images.githubusercontent.com/7837457/55077150-52be5580-5097-11e9-9d43-7cb4e983167e.png)

**Horizontal, inverted, not empty**
![image](https://user-images.githubusercontent.com/7837457/55077183-623d9e80-5097-11e9-9e8a-1b2468c7b3a9.png)

**Horizontal, inverted, empty**
![image](https://user-images.githubusercontent.com/7837457/55080033-af247380-509d-11e9-90ae-1ff656d46dd1.png)

[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
2019-03-27 12:02:41 -07:00
..
__flowtests__ Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
__tests__ Fix behaviour of Header, Footer and Empty List components in VirtualizedList when it's inverted (#24167) 2019-03-27 12:02:41 -07:00
FillRateHelper.js Deploy 0.94 to xplat 2019-03-06 14:57:30 -08:00
FlatList.js Enable removeClippedSubviews on Android only for improved scrolling performance 2018-12-12 12:55:02 -08:00
SectionList.js @allow-large-files [flow] update to v0.83 2018-10-13 01:32:48 -07:00
ViewabilityHelper.js Fixes 'Invalid render range' crash (#22847) 2019-01-21 01:58:54 -08:00
VirtualizeUtils.js Use `invariant` instead of `fbjs/lib/invariant` 2018-12-03 00:07:02 -08:00
VirtualizedList.js Fix behaviour of Header, Footer and Empty List components in VirtualizedList when it's inverted (#24167) 2019-03-27 12:02:41 -07:00
VirtualizedSectionList.js Fixed regression in SectionList caused by #21577 not being able to scroll to top on android (#24034) 2019-03-19 07:32:20 -07:00