JSPM

react-emojipicker

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 181
  • Score
    100M100P100Q84112F
  • License MIT

A react emoji picker

Package Exports

  • react-emojipicker

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-emojipicker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

react-emojipicker

npm version

react-emojipicker is a simple emoji picker component

TODO: Note that currently this emoji picker only sends the unicode emoji character back at this stage. Still in progress is passing back the title and possibly a png image in the correctly supported emoji format.

Install

npm install react-emojipicker --save

Usage basic

import Picker from 'react-emojipicker'
import ReactDOM from 'react-dom'
import React, { Component, PropTypes } from 'react'

class TestComponent extends Component {
  logEmoji (emoji) {
    console.log(emoji)
  }

  render () {
    return (
      <div>
        <Picker onEmojiSelected={this.logEmoji.bind(this)} />
      </div>
    )
  }
}

ReactDOM.render(
  <TestComponent />,
  document.getElementById('root')
)

Props

onEmojiSelected (required)

Handler returns the emoji character selected from the emoji picker.

Styles

Uses styled-components 💅 for the base styling.

Development

npm install
npm run build
npm test
npm start

License

MIT