react-native/Libraries/Lists
Maarten Schumacher cad2d9b072 Be able to scroll to last item in list
Summary:
The invariant condition doesn't allow scrolling to the last index

Here is a simple reproduction of the problem: https://snack.expo.io/BJ59gzWrZ

Surely, if the last item is rendered, we should be able to scroll to it without an invariant failing?

Tested locally that this change fixes the issue.
Closes https://github.com/facebook/react-native/pull/14934

Differential Revision: D5414535

Pulled By: shergin

fbshipit-source-id: 38dac4c0e2ae5e1e199a67ca0e98e8f7325e77f4
2017-07-13 00:03:51 -07:00
..
ListView Replace React.createClass with create-react-class 2017-07-07 14:36:01 -07:00
__flowtests__ Enforce Prettier for @format 2017-07-10 15:37:36 -07:00
__tests__ Codemod prettier to 1.5.2 2017-06-28 12:50:30 -07:00
FillRateHelper.js Codemod prettier to 1.5.2 2017-06-28 12:50:30 -07:00
FlatList.js Update FlatList.js 2017-07-06 14:34:45 -07:00
MetroListView.js Codemod prettier to 1.5.2 2017-06-28 12:50:30 -07:00
SectionList.js Codemod prettier to 1.5.2 2017-06-28 12:50:30 -07:00
ViewabilityHelper.js prettier 2017-06-12 22:45:49 -07:00
VirtualizeUtils.js Codemod prettier to 1.5.2 2017-06-28 12:50:30 -07:00
VirtualizedList.js Be able to scroll to last item in list 2017-07-13 00:03:51 -07:00
VirtualizedSectionList.js Codemod prettier to 1.5.2 2017-06-28 12:50:30 -07:00