Skip to content

Setting onMessage on a WebView overrides existing values of window.postMessage #16

@SamBellerose

Description

@SamBellerose

I've got this error on iOS when running the project, working well on Android

I tried adding this to my WebView it removed the error, but the events were not being called after
injectedJavaScript="window.postMessage = String(Object.hasOwnProperty).replace('hasOwnProperty', 'postMessage');"

Bug reference: facebook/react-native#10865

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