Inject JavaScript -Funktion in einem nativen Webview von Android React nicht funktioniert, sondern in iOS React Native funktioniert gut

For android, while adding the javascript function we need to add it as part of DOM. For that, replace `function` with `document` in jsCode.  
Ex:
let jsCode = `docuement.doPopUp() {
                        document.querySelector('#myBody').style.backgroundColor = 'red';
                        alert('hello world from webview');
                        }`;

Disturbed Deer