0.2.1 • Published 1 year ago

react-native-super-emojis v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

React Native Super Emojis 🦸‍♂️✨🦸‍♀️✨🦸

A react native library to render all current emojis, on any size!

Alt Text Alt Text

Features

  • Search Emojis:
    • You can search by description
    • Search by tags (coming soon)
  • Customizable Sections:
    • Customize section titles or add new elements such as subtitles or any node below the title.
    • Display specific sections or render all icons at once.
  • Customizable Columns:
    • You can change the number of columns.
  • Hook to get all icons database and build your custom list.
  • Select icons.

Installation

npm install react-native-super-emojis

or

yarn add react-native-super-emojis

Usage

import { EmojiList } from 'react-native-super-emojis';

const sections = [
  'Smileys & Emotion',
  'People & Body',
  'Animals & Nature',
  'Food & Drink',
  'Travel & Places',
  'Activities',
  'Objects',
  'Symbols',
  'Flags',
];

const [emojiName, setEmojiName] = useState('')

<EmojiList
  sectionsList={sections}
  numberOfColumns={7}
  searchEmoji={emojiName}
/>

Props

Prop nameDescriptionTypeRequiredDefault
onSelectEmojiFunction called when the user selects an emoji(name: string) => voidfalseundefined
searchEmojiDefine the name of the emoji you are searchingstringfalseundefined
numberOfColumnsDefine the number of columns of the emoji matrixnumberfalseundefined
emojiSizeDefine the size of all emojisnumberfalseundefined
emojiBoxStyleCustom style for the emoji parent viewViewStylefalse
emojiListStyleCustom style for the entire emoji list matrixViewStylefalse
sectionSelectedIndexDefine the selected section by indexnumberfalseundefined
sectionsListDivide the icons in 9 sectionsstring[]falseundefined
sectionNodeAdds any React Node below the section titleReactNodefalseundefined
sectionsStyleCustom style for the section parent viewViewStylefalse
sectionsTextStyleCustom style for the section titleTextStylefalse
sectionsTextContainerStyleCustom style for the section title parent viewViewStylefalse

Hooks

Hook nameDescriptionType
useIconsDBHook to return all the icons database()=> IEmojiItem[]

Made with ❤️ by @leongdev

✨ react-native-super-emojis is a personal project made to be used on my other personal projects and I hope that this small lib can help people with the same problem that I faced developing my apps!

License

MIT


0.2.1

1 year ago

0.2.0

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.0

1 year ago