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 messaging errors #86

Open
tbergman opened this issue Oct 8, 2018 · 2 comments
Open

WebView messaging errors #86

tbergman opened this issue Oct 8, 2018 · 2 comments

Comments

@tbergman
Copy link
Contributor

tbergman commented Oct 8, 2018

Reproducing :
RNTester -> WebView -> Messaging Text Example:
(The ‘Send message’ buttons are not clickable (please see issue #85)
As a temp fix to make the ‘Send message to React Native’ button clickable, I changed the pointer-events prop of the parent component of the iframe (ui-child-container-view) from ‘unset’ to ‘auto’)
When I click on it I get the following error:
"Uncaught TypeError: Failed to execute 'postMessage' on 'Window': No function was found that matched the signature provided.
at HTMLButtonElement."
I also got an error when clicking on the ‘Send Message to Web View’ but currently can't reproduce it.
I couldn’t get this to work when running another React Native demo app with a WebView - getting similar errors.

@tbergman
Copy link
Contributor Author

tbergman commented Oct 8, 2018

Further info: reproduced in Chrome 69 / OS X

@tbergman
Copy link
Contributor Author

tbergman commented Oct 9, 2018

Update: When clicking on 'Send Message to Web View' there are no errors and the message is posted but the WebView doesn't receive it

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