From 3e82f11a4bd10ea4cf18f5ec8eb5d74bd46ea4de Mon Sep 17 00:00:00 2001 From: Christoph Nakazawa Date: Thu, 4 Oct 2018 14:49:01 -0700 Subject: [PATCH] itemindex change --- Libraries/Lists/VirtualizedSectionList.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Libraries/Lists/VirtualizedSectionList.js b/Libraries/Lists/VirtualizedSectionList.js index 2e2256287fc604..f73def0e929fd3 100644 --- a/Libraries/Lists/VirtualizedSectionList.js +++ b/Libraries/Lists/VirtualizedSectionList.js @@ -10,6 +10,7 @@ 'use strict'; const React = require('React'); +const Platform = require('../Utilities/Platform'); const View = require('View'); const VirtualizedList = require('VirtualizedList'); @@ -145,7 +146,7 @@ class VirtualizedSectionList extends React.PureComponent< sectionIndex: number, viewPosition?: number, }) { - let index = params.itemIndex + 1; + let index = Platform.OS === 'ios'? params.itemIndex: params.itemIndex - 1; for (let ii = 0; ii < params.sectionIndex; ii++) { index += this.props.sections[ii].data.length + 2; }