I\'m trying to use the onMessage listener. The website is executing a postMessage (window.postMessage(\"Post message from web\");) but react native\'s webview o
window.postMessage(\"Post message from web\");
This solved my problem.
let postMessage = window.parent.postMessage; if(window.ReactNativeWebView) { postMessage = window.ReactNativeWebView.postMessage; } postMessage('hey');
https://github.com/react-native-community/react-native-webview/issues/323#issuecomment-511824940