1.0.4-development • Published 7 months ago

@pckz/react-native-fast-emoji-picker v1.0.4-development

Weekly downloads
-
License
MIT
Repository
-
Last release
7 months ago

react-native-fast-emoji-picker

Image of react-native-fast-emoji-picker

Installation

yarn add @pckz/react-native-fast-emoji-picker

import EmojiPicker from "react-native-fast-emoji-picker";

You need to have reanimated installed.

Demo

Image of react-native-fast-emoji-picker

Usage

import EmojiPicker from "@pckz/react-native-fast-emoji-picker";
<EmojiSelector
  onEmojiSelected={(emoji) => console.log(emoji)}
  columns={6}
  showSectionTitles
  showSearchBar
  showTabs
/>

Props

PropTypeDefaultDescription
onEmojiSelectedfuncFunction called when a user selects an Emoji
showTabsbooltrueToggle the tabs on or off
showSearchBarbooltrueToggle the searchbar on or off
showSectionTitlesbooltrueToggle the section title elements
columnsnumber6Number of columns accross
placeholderstring"Search Emoji"A string placeholder when there is no text in text input

Debug

Error:

TypeError: null is not an object (evaluating '\_ReanimatedModule.default.createNode')

Try

yarn add react-native-reanimated

Error:

LayoutException: RecyclerListView needs to have a bounded size. Currently height or, width is 0.Consider adding style={{flex:1}} or, fixed dimensions

Try

Setting flex:1 all Parent Views or Add fixed Height

Credit

react-native-emoji-selector