Skip to content

webview messagesChannel not working on event listener callback #23

@bidah

Description

@bidah

Platform

  • Android
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions