-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Mobile] - KeyboardAwareFlatList - Enable FlatList virtualization for iOS #59833
Changes from 17 commits
161e045
2c0684d
f4f866f
6b14857
2f2e79d
0646a9f
1e438da
699c451
8cf317e
08b86dc
9701fbd
b0287c3
c76db40
66718ff
4132abc
be48861
af847e4
0ae7bae
a9dc932
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export const OPTIMIZATION_PROPS = { | ||
windowSize: 17, | ||
maxToRenderPerBatch: 15, | ||
}; | ||
|
||
export const OPTIMIZATION_ITEMS_THRESHOLD = 30; | ||
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. Potentially, we may want to leave a note or comment with some further context on these values (as they deviate from the default values). Not a blocker for this PR, however. 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. Good idea! Updated in a9dc932 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.list__container { | ||
flex-grow: 1; | ||
align-items: stretch; | ||
} | ||
|
||
.list__content { | ||
margin-bottom: $mobile-block-toolbar-height; | ||
} |
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.
At some point, we may want to consider exporting the
scrollEventThrottle
value from a shared constant, as it's used in a few other places. Also not a blocker (since it wasn't a change in this PR), but in context of adding the shared.native.js file for optimization prop values, it may also help provide some context for other developers in the future if all non-default scroll behavior values are exported from the same place.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.
I agree!