react-native-emojipicker
react-native-emojipicker is a simple emoji picker component
Install
yarn add react-native-emojipicker
Usage
import React from 'react'import ScrollView View Text TouchableOpacity from 'react-native'import EmojiPicker from '../components/Picker' Component { thisstate = visible: true } { console } { return <ScrollView> <EmojiPicker = = /> <TouchableOpacity => <Text>show / hide</Text> </TouchableOpacity> </ScrollView> }
Props
onEmojiSelected
(required)
Handler returns the unicode emoji character ⚽️ selected from the emoji picker.
visible
Opacity to show or hide the picker. Defaults to true
.
Styles
Uses styled-components 💅 for the base styling.
Development
yarn
npm run dev
Build
yarn
npm run build
npm login
npm version patch
git add -A
git push origin master
npm publish