This is a hacky way to do it, while we wait for a native bridge (I found it in a React Native issue on GitHub.

Basically you trigger an event in your parent component by listening to a navigation change in the WebView, and pass the name of a method (or whatever) via the document.title field.

Longer post coming (maybe, I find myself adding stuff on the go ­čś░)

You will also have to read the following to correctly send all the data you want from the WebView to the parent component.

Leave a Reply

Your email address will not be published. Required fields are marked *