Danilo Bürger 699fad7d06 Fixed regression in SectionList caused by #21577 not being able to scroll to top on android (#24034)
Summary:
```
let index = params.itemIndex + 1;
```
to
```
let index = Platform.OS === 'ios' ? params.itemIndex : params.itemIndex - 1;
```
to fix an issue on iOS. Note however, how the sign for non iOS changed from `+` to `-` causing a crash on Android when trying to scroll to index 0 as that will be evaluated to -1 instead of 1 and thus be out of bounds.

[Android] [Fixed] - Fixed regression in SectionList caused by #21577 not being able to scroll to top on android
Pull Request resolved: https://github.com/facebook/react-native/pull/24034

Differential Revision: D14520796

Pulled By: cpojer

fbshipit-source-id: bb49619f49752fd3f343ef3b7bf1b86ac48af7f8
2019-03-22 18:22:26 +01:00
..
2019-02-12 07:38:42 -08:00
2019-02-04 17:46:56 -08:00
2018-12-11 20:01:00 -08:00
2019-03-14 12:12:02 +01:00
2019-02-01 09:35:42 -08: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
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