mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
09236ccbe7
Summary: Infinite scrolling in horizontal ListViews. Rather than just using height and Y offset to determine when to load more rows, it checks `props.horizontal` and switches between width/height and offset X/Y accordingly. This changed required some renaming. However, the only change external to `ListView.js` is exporting `contentSize` instead of `contentHeight` from the `getMetrics()` function. (This is not part of the API, but is used "for perf investigations or analytics" and isn't reference in the repo). I believe this change works as expected (and the xcode tests pass) though it's possible that there may more complexity in this issue that I have overlooked. Closes https://github.com/facebook/react-native/pull/1786 Github Author: Mr Speaker <mrspeaker@gmail.com>