-
Couldn't load subscription status.
- Fork 24.9k
Fixes #issue18098 SectionList scrollToLocation #21577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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<SectionT: SectionBase> extends React.PureComponent< | |
| sectionIndex: number, | ||
| viewPosition?: number, | ||
| }) { | ||
| let index = params.itemIndex + 1; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. prettier/prettier: Replace There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. space-infix-ops: Infix operators must be spaced. |
||
| 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; | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot resolve module
../Utilities/Platform.