rn-emoji-picker
rn-emoji-picker copied to clipboard
Allow setting Tabbar emoji list
Love the library, super easy to use thus far. It would be nice if the library allowed setting the Tabbar emoji list with a custom list, this is super helpful when people have custom data they want to use.
export const categories = [
{key: RECENT, emoji: 'ð', name: 'Recently used'},
{key: 'emotion', emoji: 'ðĪŠ', name: 'Smileys & Emotion'},
{key: 'people', emoji: 'ðââ', name: 'People & Body'}
] as const
<EmojiPicker
emojis={emojis} // emojis data source see data/emojis
recent={recent} // store of recently used emojis
autoFocus={true} // autofocus search input
loading={false} // spinner for if your emoji data or recent store is async
darkMode={true} // to be or not to be, that is the question
perLine={7} // # of emoji's per line
onSelect={console.log} // callback when user selects emoji - returns emoji obj
onChangeRecent={setRecent} // callback to update recent storage - arr of emoji objs
tabbarCategories={categories}
/>
What do you think? Any concerns?