We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01f1780 commit f66e8ebCopy full SHA for f66e8eb
Libraries/Lists/VirtualizedSectionList.js
@@ -9,6 +9,7 @@
9
*/
10
'use strict';
11
12
+const Platform = require('Platform');
13
const React = require('React');
14
const View = require('View');
15
const VirtualizedList = require('VirtualizedList');
@@ -145,7 +146,7 @@ class VirtualizedSectionList<SectionT: SectionBase> extends React.PureComponent<
145
146
sectionIndex: number,
147
viewPosition?: number,
148
}) {
- let index = params.itemIndex + 1;
149
+ let index = Platform.OS === 'ios' ? params.itemIndex : params.itemIndex - 1;
150
for (let ii = 0; ii < params.sectionIndex; ii++) {
151
index += this.props.sections[ii].data.length + 2;
152
}
0 commit comments