import React from 'react' import ReactDOM from 'react-dom' import { Picker, Emoji } from '../src' class Example extends React.Component { constructor(props) { super(props) this.state = { emojiSize: 24, perLine: 9, skin: 1, native: true, set: 'apple', hidden: false, } } handleInput(e) { var { currentTarget } = e, { value, type, checked } = currentTarget, key = currentTarget.getAttribute('data-key'), state = {} if (type == 'checkbox') { state[key] = checked } else { state[key] = parseInt(value) } this.setState(state) } render() { return

Emoji Mart

{['native', 'apple', 'google', 'twitter', 'emojione'].map((set) => { var props = { disabled: !this.state.native && set == this.state.set } if (set == 'native' && this.state.native) { props.disabled = true } return })}
import {Picker} from 'emoji-mart'


<Picker
emojiSize={{this.state.emojiSize}}
perLine={{this.state.perLine}} {this.state.perLine < 10 ? ' ' : ' '}
skin={{this.state.skin}}
set='{this.state.set}'
onClick={(emoji) => console.log(emoji)}
/>
{!this.state.hidden && console.log(emoji)} /> }
import {Emoji} from 'emoji-mart'


<Emoji
emoji='thumbsup'
size={{64}}
/>

<Emoji
emoji=':thumbsup:'
size={{64}}
/>
  
<Emoji
emoji=':thumbsup::skin-tone-3:'
size={{64}}
/>
  
<Emoji
emoji=':thumbsup::skin-tone-3:'
size={{64}}
native={{'true'}}
/>
} } class Operator extends React.Component { render() { return {this.props.children} } } class Variable extends React.Component { render() { return {this.props.children} } } class String extends React.Component { render() { return {this.props.children} } } ReactDOM.render(, document.querySelector('div'))