Add messenger & facebook sets
parent
33bcbda3d7
commit
3332c525d4
|
@ -35,7 +35,7 @@ import { Picker } from 'emoji-mart'
|
|||
| **perLine** | | `9` | Number of emojis per line. While there’s no minimum or maximum, this will affect the picker’s width. This will set *Frequently Used* length as well (`perLine * 4`) |
|
||||
| **i18n** | | [`{…}`](#i18n) | [An object](#i18n) containing localized strings |
|
||||
| **native** | | `false` | Renders the native unicode emoji |
|
||||
| **set** | | `apple` | The emoji set: `'apple', 'google', 'twitter', 'emojione'` |
|
||||
| **set** | | `apple` | The emoji set: `'apple', 'google', 'twitter', 'emojione', 'messenger', 'facebook'` |
|
||||
| **sheetSize** | | `64` | The emoji [sheet size](#sheet-sizes): `16, 20, 32, 64` |
|
||||
| **backgroundImageFn** | | ```((set, sheetSize) => …)``` | A Fn that returns that image sheet to use for emojis. Useful for avoiding a request if you have the sheet locally. |
|
||||
| **emojisToShowFilter** | | ```((emoji) => true)``` | A Fn to choose whether an emoji should be displayed or not |
|
||||
|
@ -204,9 +204,9 @@ It can however be overwritten as per user preference.
|
|||
![colors](https://cloud.githubusercontent.com/assets/436043/17221637/9f6f8508-54c2-11e6-8d10-59c5d3a458e0.png)
|
||||
|
||||
#### Multiple sets supported
|
||||
Apple / Google / Twitter / EmojiOne
|
||||
Apple / Google / Twitter / EmojiOne / Messenger / Facebook
|
||||
|
||||
![sets](https://cloud.githubusercontent.com/assets/436043/17221550/4261d64a-54c2-11e6-8c49-a5c4c4696f8b.png)
|
||||
![sets](https://cloud.githubusercontent.com/assets/436043/26523496/d41cd734-42e6-11e7-8ae8-bad87e83d534.png)
|
||||
|
||||
## Not opinionated
|
||||
**Emoji Mart** doesn’t automatically insert anything into a text input, nor does it show or hide itself. It simply returns an `emoji` object. It’s up to the developer to mount/unmount (it’s fast!) and position the picker. You can use the returned object as props for the `EmojiMart.Emoji` component. You could also use `emoji.colons` to insert text into a textarea or `emoji.native` to use the emoji.
|
||||
|
|
|
@ -98,7 +98,7 @@ class Example extends React.Component {
|
|||
</div>
|
||||
|
||||
<div className="row">
|
||||
{['native', 'apple', 'google', 'twitter', 'emojione'].map((set) => {
|
||||
{['native', 'apple', 'google', 'twitter', 'emojione', 'messenger', 'facebook'].map((set) => {
|
||||
var props = { disabled: !this.state.native && set == this.state.set }
|
||||
|
||||
if (set == 'native' && this.state.native) {
|
||||
|
|
|
@ -115,7 +115,7 @@ Emoji.propTypes = {
|
|||
forceSize: PropTypes.bool,
|
||||
skin: PropTypes.oneOf([1, 2, 3, 4, 5, 6]),
|
||||
sheetSize: PropTypes.oneOf([16, 20, 32, 64]),
|
||||
set: PropTypes.oneOf(['apple', 'google', 'twitter', 'emojione']),
|
||||
set: PropTypes.oneOf(['apple', 'google', 'twitter', 'emojione', 'messenger', 'facebook']),
|
||||
size: PropTypes.number.isRequired,
|
||||
emoji: PropTypes.oneOfType([
|
||||
PropTypes.string,
|
||||
|
|
Loading…
Reference in New Issue