Vojtech Novak 54f91d3ca9 make sure to check array bounds in VirtualizedSectionList (#23710)
Summary:
SectionList accesses items outside of the array bounds.

This was discovered when using mobx, which warns you: `[mobx.array] Attempt to read an array index (${index}) that is out of bounds`. This is because `section.data[itemIndex + 1]` goes beyond array length.

This PR adds an array length check and simplifies the code a bit to avoid repetitive `this.props.`
Pull Request resolved: https://github.com/facebook/react-native/pull/23710

Differential Revision: D14298557

Pulled By: cpojer

fbshipit-source-id: fee3422ad5b053d91a097c5842f46e78a149c3d5
2019-05-06 20:19:29 +02:00
..
2019-02-12 07:38:42 -08:00
2019-04-30 22:29:11 +02:00
2019-02-04 17:46:56 -08:00
2018-12-11 20:01:00 -08:00
2019-04-18 14:53:24 +02:00
2019-01-17 02:41:59 -08:00
2019-01-28 03:57:42 -08:00
2019-02-11 16:50:40 -08:00
2019-04-18 14:04:53 +02:00
2018-10-31 01:37:26 -07:00
2019-02-04 17:46:56 -08:00
2018-09-27 14:18:31 -07:00
2019-02-11 09:06:43 -08:00
2018-11-26 06:28:24 -08:00