import React, { Component } from "react"; import { StyleSheet, View, Button } from "react-native"; import CustomWebView from "react-native-webview-android-image-upload"; export default class App extends Component { inject = () => { this.webview.injectJavaScript("alert('JavaScript is injected')"); }; reload = () => { this.webview.reload(); }; render() { return ( (this.webview = e)} injectedJavaScript={"alert('Custom webview loaded')"} source={{ uri: "https://andreipfeiffer.github.io/react-native-webview-android-image-upload/index.html" }} />