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

webview messagesChannel not working on event listener callback #23

Open
2 tasks done
bidah opened this issue May 22, 2018 · 0 comments
Open
2 tasks done

webview messagesChannel not working on event listener callback #23

bidah opened this issue May 22, 2018 · 0 comments

Comments

@bidah
Copy link

bidah commented May 22, 2018

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.

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

1 participant