-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
undefined is not a object (evaluating 'promise.done.bind') #182
Comments
Hello, |
Yes it is. |
What RN version are you using? I created a project using your code and could'nt reproduce, can you prepare a code example? |
"react": "15.2.1", and here the error screen -> https://monosnap.com/file/jnhre3Zbh5PsYZ41cqLYxkxv32rmJ2 Edit: |
Can you test this workaround facebook/react-native#8624 (comment) ? in https://github.com/FaridSafi/react-native-gifted-chat/blob/master/src/GiftedChat.js#L397 |
@kennyzehn Are you using an external promise library? |
@kfiroo I use this one https://github.com/stefanpenner/es6-promise |
@kennyzehn I think it might override the You would probably be able to reproduce it by using |
Thanks @kfiroo! Works much better. But there is also a other bug. render() {
if(this.state.messages) {
return (
<View style={{flex: 1}}>
<GiftedChat messages={this.state.messages} onSend={this.onSend.bind(this)} user={{_id: 1}}/>
</View>
)
} else {
return (
<Loading />
)
}
} Any ideas? |
is the container of your component bigger than the screen ? |
@kennyzehn Maybe open a new issue with a relevant title if the bug is real :) |
Hey guys,
i dont know what goes wrong?! But the first request on the chat component failed with this message -> undefined is not a object (evaluating 'promise.done.bind')
Any ideas?
The text was updated successfully, but these errors were encountered: