Skip to content

Commit

Permalink
revert emoji picker using cached height
Browse files Browse the repository at this point in the history
  • Loading branch information
suneox committed Mar 26, 2024
1 parent 8114339 commit 5f3f51c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const useEmojiPickerMenu = () => {
const isListFiltered = allEmojis.length !== filteredEmojis.length;
const {preferredLocale} = useLocalize();
const [preferredSkinTone] = usePreferredEmojiSkinTone();
const {windowHeight} = useWindowDimensions(true);
const {windowHeight} = useWindowDimensions();

This comment has been minimized.

Copy link
@situchan

situchan Mar 26, 2024

Contributor

what's the difference between these 2 changes?

const StyleUtils = useStyleUtils();
// calculate the height of the emoji picker based popoverInnerContainer style has maxHeight is 95%
const listStyle = StyleUtils.getEmojiPickerListHeight(isListFiltered, windowHeight * 0.95);
Expand Down

0 comments on commit 5f3f51c

Please sign in to comment.