From bda0cb956ee03bd62b6077c82779b4315bab9ebb Mon Sep 17 00:00:00 2001 From: Eduardo Date: Wed, 14 Feb 2024 14:23:52 +0100 Subject: [PATCH 1/2] Setting the amount of items to draw --- src/CONST.ts | 3 +++ .../EmojiPicker/EmojiPickerMenu/BaseEmojiPickerMenu.js | 1 + 2 files changed, 4 insertions(+) diff --git a/src/CONST.ts b/src/CONST.ts index b27923465a1f..f91d5994fbe9 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -909,6 +909,9 @@ const CONST = { EMOJI_DEFAULT_SKIN_TONE: -1, + // Amount of emojist to render ahead at the end of the update cycle + EMOJI_DRAW_AMOUNT: 250, + INVISIBLE_CODEPOINTS: ['fe0f', '200d', '2066'], UNICODE: { diff --git a/src/components/EmojiPicker/EmojiPickerMenu/BaseEmojiPickerMenu.js b/src/components/EmojiPicker/EmojiPickerMenu/BaseEmojiPickerMenu.js index 059f3fc5f848..c3a61397b558 100644 --- a/src/components/EmojiPicker/EmojiPickerMenu/BaseEmojiPickerMenu.js +++ b/src/components/EmojiPicker/EmojiPickerMenu/BaseEmojiPickerMenu.js @@ -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} From 6d40e253b903872ca7af8df5940882c40b96ea75 Mon Sep 17 00:00:00 2001 From: Eduardo Date: Thu, 15 Feb 2024 16:45:02 +0100 Subject: [PATCH 2/2] Fixed typo --- src/CONST.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CONST.ts b/src/CONST.ts index f91d5994fbe9..5faf79dffe36 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -909,7 +909,7 @@ const CONST = { EMOJI_DEFAULT_SKIN_TONE: -1, - // Amount of emojist to render ahead at the end of the update cycle + // Amount of emojis to render ahead at the end of the update cycle EMOJI_DRAW_AMOUNT: 250, INVISIBLE_CODEPOINTS: ['fe0f', '200d', '2066'],