rn-emoji-picker icon indicating copy to clipboard operation
rn-emoji-picker copied to clipboard

Allow setting Tabbar emoji list

Open mbrimmer83 opened this issue 1 year ago â€Ē 0 comments

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?

mbrimmer83 avatar Sep 10 '23 00:09 mbrimmer83