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

How to determine whether an emoji has variations #389

Open
wfischer42 opened this issue Jan 19, 2024 · 0 comments
Open

How to determine whether an emoji has variations #389

wfischer42 opened this issue Jan 19, 2024 · 0 comments

Comments

@wfischer42
Copy link

I'm building an emoji tapback component and I want people to be able to quick-tap to react the same way someone else has already reacted. It's similar to Slack, where the user's saved default skin-tone will be applied.

The trouble is, I can't find a way to determine whether or not any given emoji has variants as an option, so there's no way to determine when the skin-tone modifier should or shouldn't be applied. The Emoji component doesn't differentiate either: if it gets passed a unified value that includes an invalid variant modifier, it shows the broken image placeholder.

Is there any way to programmatically determine whether a given unified code will still be valid if a skin-tone modifier is attached?

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

No branches or pull requests

1 participant