Answers for "react native webview postmessage example"

0

react native webview postmessage example

if(navigator.appVersion.includes('Android')){
            document.addEventListener("message", function (data) {
               alert("you are in android OS");
            });
        }
else {
            window.addEventListener("message", function (data) {
               alert("you are in android OS");               
             });
        }
Posted by: Guest on August-01-2020

Code answers related to "react native webview postmessage example"

Code answers related to "Javascript"

Browse Popular Code Answers by Language