Skip to content
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

FlatList example fixes #38739

Closed
wants to merge 1 commit into from

Conversation

NickGerleman
Copy link
Contributor

Summary:

  1. The separator here adds horizontal width, except when the cell is tapped. This is meant to be a visual effect for vertical FlatList, but makes getItemLayout incorrect and results in odd layout shifts. Do not use when horizontal.
  2. Disabling "fixed height" leads to a barrage of errors because the example sets initialScrollIndex but does not set an onScrollToIndexFailed prop.

Changelog: [Internal]

Differential Revision: D47978628

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Aug 2, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47978628

@analysis-bot
Copy link

analysis-bot commented Aug 2, 2023

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,894,497 -23
android hermes armeabi-v7a 7,943,051 -22
android hermes x86 9,292,390 -26
android hermes x86_64 9,193,904 -28
android jsc arm64-v8a 9,481,485 +175
android jsc armeabi-v7a 8,423,024 +178
android jsc x86 9,465,508 +176
android jsc x86_64 9,779,741 +177

Base commit: a34ce64
Branch: main

NickGerleman added a commit to NickGerleman/react-native that referenced this pull request Aug 3, 2023
Summary:
Pull Request resolved: facebook#38739

1. The separator here adds horizontal width, except when the cell is tapped. This is meant to be a visual effect for vertical FlatList, but makes `getItemLayout` incorrect and results in odd layout shifts. Do not use when horizontal.
2. Disabling "fixed height" leads to a barrage of errors because the example sets `initialScrollIndex` but does not set an `onScrollToIndexFailed` prop.

Changelog: [Internal]

Reviewed By: rozele

Differential Revision: D47978628

fbshipit-source-id: 708cae0600535f9eecd3ac422b93736edd80ba72
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47978628

Summary:
Pull Request resolved: facebook#38739

1. The separator here adds horizontal width, except when the cell is tapped. This is meant to be a visual effect for vertical FlatList, but makes `getItemLayout` incorrect and results in odd layout shifts. Do not use when horizontal.
2. Disabling "fixed height" leads to a barrage of errors because the example sets `initialScrollIndex` but does not set an `onScrollToIndexFailed` prop.

Changelog: [Internal]

Reviewed By: rozele

Differential Revision: D47978628

fbshipit-source-id: 33efab842bca387f1388a51ee48b3784e66d949d
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D47978628

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Aug 4, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 306ca02.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants