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

Add ability to disable categories #35

Open
bkwhite opened this issue Feb 13, 2020 · 3 comments
Open

Add ability to disable categories #35

bkwhite opened this issue Feb 13, 2020 · 3 comments
Labels
enhancement Roadmap This is being tracked on the v1.0.0 roadmap

Comments

@bkwhite
Copy link

bkwhite commented Feb 13, 2020

It would be very helpful if categories could be disabled via component props

@arronhunt
Copy link
Owner

I'm thinking through the best pattern to achieve something like this. Instead of disabling certain categories I feel its more intuitive to whitelist them. We could have an API like this

import EmojiSelector, { Categories } from "react-native-emoji-selector";

const { flags, sports, food } = Categories;

<EmojiSelector
  onEmojiSelected={handleEmoji}
  categoriesEnabled={[
    flags, sports, food
  ]}
/>

@bkwhite
Copy link
Author

bkwhite commented Mar 4, 2020

I like that approach, it also aligns with our use case well.

@arronhunt arronhunt mentioned this issue May 7, 2021
8 tasks
@arronhunt arronhunt added the Roadmap This is being tracked on the v1.0.0 roadmap label May 7, 2021
@arronhunt
Copy link
Owner

This will be included in v1.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Roadmap This is being tracked on the v1.0.0 roadmap
Projects
None yet
Development

No branches or pull requests

2 participants