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 a5c57b4 commit d8eb28aCopy full SHA for d8eb28a
Libraries/Lists/VirtualizedSectionList.js
@@ -149,7 +149,13 @@ class VirtualizedSectionList<
149
for (let i = 0; i < params.sectionIndex; i++) {
150
index += this.props.getItemCount(this.props.sections[i].data) + 2;
151
}
152
+ let viewOffset = 0;
153
+ if (params.itemIndex > 0 && this.props.stickySectionHeadersEnabled) {
154
+ const frame = this._listRef._getFrameMetricsApprox(index - params.itemIndex);
155
+ viewOffset = frame.length;
156
+ }
157
const toIndexParams = {
158
+ viewOffset,
159
...params,
160
index,
161
};
0 commit comments