Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Really slow to render when not using concise #6

Open
ryanvanderpol opened this issue Jul 27, 2017 · 3 comments
Open

Really slow to render when not using concise #6

ryanvanderpol opened this issue Jul 27, 2017 · 3 comments

Comments

@ryanvanderpol
Copy link

This is a great component, but on an iPhone 7, rendering this with concise={false} takes 5+ seconds. On most Android devices it's even longer (10 seconds). I assume this is because there is a bunch of processing going on with 1100+ emojis, but this lag basically makes this unusable for me.

@srameshr
Copy link

srameshr commented Sep 11, 2017

Yes, same for me. Rendering is really really slow. I had to remove the plugin.
@ryanvanderpol Did you find any solution for this?

@xiewang
Copy link
Owner

xiewang commented Sep 17, 2017

Sorry late for this. if you still on and have have time on this, try the latest version(@1.0.7) and add a props to the components. The props is asyncRender, and set it true on android. Let me knew that if this solution is valid.
Thanks a lot

<Emoticons
onEmoticonPress={this._onEmoticonPress.bind(this)}
onBackspacePress={this._onBackspacePress.bind(this)}
show={this.state.showEmoticons}
concise={true}
showHistoryBar={true}
showPlusBar={true}
asyncRender={true}
/>

@srameshr
Copy link

@xiewang Thanks for the update! But i ended up using https://github.com/brendan-rius/react-native-emoji-keyboard/. It turned out to be super fast. But its only for iOS. I will use your library for android later this month and let you know.
In the meanwhile please see to this, that setting concise to true does not render all the emojis and basically turns out to be not useful at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants