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

Only use custom emojis #355

Open
BoHuny opened this issue Jun 20, 2023 · 5 comments
Open

Only use custom emojis #355

BoHuny opened this issue Jun 20, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@BoHuny
Copy link

BoHuny commented Jun 20, 2023

Hello,

I wish to remove all native emojis from the picker to only use my custom emojis, is there a way to achieve that? Couldn't quite how to do this in the doc.
Thanks in advance

@nolanlawson
Copy link
Owner

@BoHuny You mean you want to remove the tab bar entirely and only show custom emoji? You could probably accomplish this with a CSS rule to hide the tab bar.

@BoHuny
Copy link
Author

BoHuny commented Jun 23, 2023

Hello!
The issue is, if I just hide the tab bar, custom emojis still popup with the research bar, which I still need for my custom emojis.
I found a workaround (using own datasource with one single unicode emoji) so I can still work with my use case. You can still change the behavior to remove native emojis if you think other users might have this problem
Ty for your help and the library, works very well!

@nolanlawson
Copy link
Owner

@BoHuny Hmm, maybe you could try using a dataSource that is just an empty JSON array? I think that should remove the native emoji from the search results as well.

@BoHuny
Copy link
Author

BoHuny commented Jun 26, 2023

Hello @nolanlawson
The thing is, if I pass an empty array then this error is thrown
image
It only works when the JSON array contains at least one emoji

@nolanlawson nolanlawson added the enhancement New feature or request label Oct 8, 2023
@danterohlin
Copy link

Any fix for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants