Skip to content

[Question] React Native Webview Support #2

@Nikit-Singh

Description

@Nikit-Singh

Just curious if we can use this for communication between React Native and a website running inside React Native Webview?

The current way to talk between the two is:

  • To send data from React Native to the website running inside webview, you inject js into Webview which is then available on the website.
  • To send data from Website to React Native, you call the window.reactNative.postMessage method which is injected into the global context by React Native Webview. Then you recieve the event on the webview message handler function and do rest of the stuff there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions