Horje
Inject Javascript Function not working in Android React Native WebView but work fine in iOS React Native Code Example
Inject Javascript Function not working in Android React Native WebView but work fine in iOS React Native
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');
                        }`;





Javascript

Related
initialize function in javascript Code Example initialize function in javascript Code Example
fs file already exists Code Example fs file already exists Code Example
js class method called when page loads Code Example js class method called when page loads Code Example
Chart is not a constructor Code Example Chart is not a constructor Code Example
js pixelated Code Example js pixelated Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8