Closed darekg11 closed 5 years ago
https://github.com/sskhandek/react-native-emoji-input/issues/5 It is a temporary workaround that would allow user of this library to avoid missing emojis being render as X
X
Nope, by default all emojis will be rendered as before.
Adds new filterFunctions prop allowing user to pass an array of functions used to filter emojis list before rendering it
filterFunctions
filterFunctionByUnicode = emoji => { return emoji.lib.added_in === "6.0" || emoji.lib.added_in === "6.1" } <EmojiInput onEmojiSelected={this.handleEmojiSelected} ref={emojiInput => this._emojiInput = emojiInput} resetSearch={this.state.reset} loggingFunction={this.verboseLoggingFunction.bind(this)} verboseLoggingFunction={true} filterFunctions={[this.filterFunctionByUnicode]} />
Before on my Huawei P8Lite running Android 6.0:
After enabling only 6.0 Unicode:
@rijn Let me know what You think : )
No problem 👌
Thank you for all the work here @rijn and @darekg11
No problem, glad to help.
Relate to any issue?
https://github.com/sskhandek/react-native-emoji-input/issues/5
It is a temporary workaround that would allow user of this library to avoid missing emojis being render as
X
Breaking change?
Nope, by default all emojis will be rendered as before.
What this PR does?
Adds new
filterFunctions
prop allowing user to pass an array of functions used to filter emojis list before rendering itExample of usage:
Change Preview:
Before on my Huawei P8Lite running Android 6.0:
![before](https://user-images.githubusercontent.com/11317951/53982863-41c49900-4116-11e9-985b-83044d0ded04.png)
After enabling only 6.0 Unicode:
![after](https://user-images.githubusercontent.com/11317951/53982900-543ed280-4116-11e9-9ade-6363a4858b03.png)