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

Setting the amount of Emojis to draw in FlashList #36486

Merged
merged 3 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Setting the amount of items to draw
  • Loading branch information
gedu committed Feb 14, 2024
commit bda0cb956ee03bd62b6077c82779b4315bab9ebb
3 changes: 3 additions & 0 deletions src/CONST.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,9 @@ const CONST = {

EMOJI_DEFAULT_SKIN_TONE: -1,

// Amount of emojist to render ahead at the end of the update cycle
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emojist - typo?

EMOJI_DRAW_AMOUNT: 250,

INVISIBLE_CODEPOINTS: ['fe0f', '200d', '2066'],

UNICODE: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function BaseEmojiPickerMenu({headerEmojis, scrollToHeader, isFiltered, listWrap
ref={forwardedRef}
keyboardShouldPersistTaps="handled"
data={data}
drawDistance={CONST.EMOJI_DRAW_AMOUNT}
renderItem={renderItem}
keyExtractor={keyExtractor}
numColumns={CONST.EMOJI_NUM_PER_ROW}
Expand Down
Loading