Skip to content

WebView messaging errors #86

@tbergman

Description

@tbergman

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.

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