react-native-webview-messaging
react-native-webview-messaging copied to clipboard
webview messagesChannel not working on event listener callback
Platform
- [X] Android
- [X] iOS
What react-native version are you using?
0.51
Issue details
I am sending a message to the webview on a keyboard event listener
componentWillMount() {
this.keyboardDidShowListener = Keyboard.addListener('keyboardDidShow', this.keyboardDidShow.bind(this));
}
The thing is that the method keyboardDidShow is receiving the webview but the on method is not working on the webview side.
If I log the emit this.webview.messagesChannel.emit('toggleKeyboardNative') I get returned false
Other emit calls works in the webview side with the on receivers.