react-native-webview-messaging icon indicating copy to clipboard operation
react-native-webview-messaging copied to clipboard

webview messagesChannel not working on event listener callback

Open bidah opened this issue 7 years ago • 0 comments

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.

bidah avatar May 22 '18 19:05 bidah