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

emoji-mart: expose NativeSupport tools #23

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

oliw-figma
Copy link

@oliw-figma oliw-figma commented Nov 16, 2023

There are several (somewhat standardized) "Emoji" sets out there; we at Figma currently target Emoji 14; however some people use Figma using older operating systems (with older font libraries) don't support Emoji 14 (e.g. my older personal macbook pro which is on Mac OS 11).

EmojiMart's <Picker/> component has a version prop you can pass in. When set, it will only show you emojis to pick that are <= the version you provided.

We don't current set it, so it defaults to 14.

When I open our Picker on my personal laptop I see some ugly un-renderable emojis :(

image

This PR exposes the NativeSupport helper library so that clients can use its methods to infer what version of emojis are supported and thus set the version library appropriately.

…ethods to infer what version of emojis are supported
@@ -1,5 +1,5 @@
export { PickerElement as Picker } from './components/Picker'
export { EmojiElement as Emoji } from './components/Emoji'

export { SearchIndex, Store } from './helpers'
export { SearchIndex, Store, NativeSupport } from './helpers'
Copy link
Author

Choose a reason for hiding this comment

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

@oliw-figma oliw-figma merged commit 1f42f9f into figma-release-3 Nov 16, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants