import React from 'react' import ReactDOM from 'react-dom' import {Picker} from '../src' class Example extends React.Component { constructor(props) { super(props) this.state = { emojiSize: 24, perLine: 9, skin: 1, set: 'apple', hidden: false, } } handleInput(e) { var { currentTarget } = e, { value } = currentTarget, key = currentTarget.getAttribute('data-key'), state = {} state[key] = parseInt(value) this.setState(state) } render() { return
{!this.state.hidden &&import {Picker}from 'emoji-mart'
< Picker
emojiSize= {{this.state.emojiSize} }
perLine= {{this.state.perLine} } {this.state.perLine < 10 ? ' ' : ' '}
skin= {{this.state.skin} }
sheetURL= 'sheets/sheet_{this.state.set}_64.png'
onClick= {(emoji ) => console.log(emoji )}/>