Be able to scroll to last item in list
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

Bhullnatik/react-native,myntra/react-native,jevakallio/react-native,doochik/react-native,janicduplessis/react-native,makadaw/react-native,hammerandchisel/react-native,myntra/react-native,hoastoolshop/react-native,javache/react-native,farazs/react-native,doochik/react-native,pandiaraj44/react-native,Bhullnatik/react-native,jevakallio/react-native,facebook/react-native,makadaw/react-native,jevakallio/react-native,Bhullnatik/react-native,rickbeerendonk/react-native,facebook/react-native,pandiaraj44/react-native,exponentjs/react-native,doochik/react-native,formatlos/react-native,farazs/react-native,dikaiosune/react-native,facebook/react-native,hoangpham95/react-native,makadaw/react-native,exponent/react-native,formatlos/react-native,facebook/react-native,ptmt/react-native-macos,farazs/react-native,dikaiosune/react-native,formatlos/react-native,pandiaraj44/react-native,doochik/react-native,hammerandchisel/react-native,ptmt/react-native-macos,negativetwelve/react-native,doochik/react-native,negativetwelve/react-native,hoastoolshop/react-native,hoastoolshop/react-native,rickbeerendonk/react-native,hoastoolshop/react-native,negativetwelve/react-native,jevakallio/react-native,ptmt/react-native-macos,facebook/react-native,rickbeerendonk/react-native,formatlos/react-native,exponent/react-native,hammerandchisel/react-native,hammerandchisel/react-native,kesha-antonov/react-native,facebook/react-native,pandiaraj44/react-native,hoastoolshop/react-native,dikaiosune/react-native,arthuralee/react-native,dikaiosune/react-native,makadaw/react-native,myntra/react-native,cdlewis/react-native,frantic/react-native,farazs/react-native,kesha-antonov/react-native,myntra/react-native,janicduplessis/react-native,javache/react-native,pandiaraj44/react-native,javache/react-native,janicduplessis/react-native,cdlewis/react-native,hammerandchisel/react-native,hoangpham95/react-native,negativetwelve/react-native,ptmt/react-native-macos,javache/react-native,makadaw/react-native,cdlewis/react-native,hoangpham95/react-native,exponentjs/react-native,hoangpham95/react-native,formatlos/react-native,kesha-antonov/react-native,hoangpham95/react-native,negativetwelve/react-native,doochik/react-native,javache/react-native,hammerandchisel/react-native,dikaiosune/react-native,exponentjs/react-native,myntra/react-native,frantic/react-native,exponent/react-native,janicduplessis/react-native,frantic/react-native,exponent/react-native,negativetwelve/react-native,exponentjs/react-native,kesha-antonov/react-native,hammerandchisel/react-native,exponentjs/react-native,Bhullnatik/react-native,myntra/react-native,pandiaraj44/react-native,dikaiosune/react-native,formatlos/react-native,kesha-antonov/react-native,doochik/react-native,frantic/react-native,farazs/react-native,makadaw/react-native,rickbeerendonk/react-native,jevakallio/react-native,ptmt/react-native-macos,ptmt/react-native-macos,javache/react-native,doochik/react-native,formatlos/react-native,rickbeerendonk/react-native,exponent/react-native,dikaiosune/react-native,jevakallio/react-native,arthuralee/react-native,kesha-antonov/react-native,exponentjs/react-native,facebook/react-native,farazs/react-native,farazs/react-native,hoastoolshop/react-native,negativetwelve/react-native,myntra/react-native,facebook/react-native,makadaw/react-native,rickbeerendonk/react-native,cdlewis/react-native,hoangpham95/react-native,exponent/react-native,javache/react-native,doochik/react-native,janicduplessis/react-native,arthuralee/react-native,exponentjs/react-native,dikaiosune/react-native,jevakallio/react-native,janicduplessis/react-native,formatlos/react-native,Bhullnatik/react-native,exponent/react-native,pandiaraj44/react-native,hoastoolshop/react-native,jevakallio/react-native,rickbeerendonk/react-native,farazs/react-native,cdlewis/react-native,myntra/react-native,cdlewis/react-native,hammerandchisel/react-native,ptmt/react-native-macos,myntra/react-native,negativetwelve/react-native,janicduplessis/react-native,exponentjs/react-native,hoangpham95/react-native,cdlewis/react-native,cdlewis/react-native,arthuralee/react-native,kesha-antonov/react-native,formatlos/react-native,pandiaraj44/react-native,hoangpham95/react-native,makadaw/react-native,jevakallio/react-native,hoastoolshop/react-native,Bhullnatik/react-native,negativetwelve/react-native,kesha-antonov/react-native,javache/react-native,farazs/react-native,kesha-antonov/react-native,frantic/react-native,javache/react-native,rickbeerendonk/react-native,facebook/react-native,exponent/react-native,Bhullnatik/react-native,janicduplessis/react-native,ptmt/react-native-macos,arthuralee/react-native,rickbeerendonk/react-native,cdlewis/react-native,Bhullnatik/react-native,makadaw/react-native