How to use the react-native-webview.WebView function in react-native-webview

To help you get started, we’ve selected a few react-native-webview examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jarden-digital / react-native-recaptchav3 / dist / src / ReCaptchaComponent.js View on Github external
render() {
        return React.createElement(react_native_1.View, { style: { flex: 0.0001, width: 0, height: 0 } },
            React.createElement(react_native_webview_1.WebView, { ref: (ref) => {
                    this._webViewRef = ref;
                }, javaScriptEnabled: true, originWhitelist: ['about:blank'], automaticallyAdjustContentInsets: true, mixedContentMode: 'always', injectedJavaScript: patchPostMessageJsCode, source: {
                    html: getInvisibleRecaptchaContent(this.props.siteKey),
                    baseUrl: this.props.captchaDomain
                }, onMessage: (e) => {
                    this.props.onReceiveToken(e.nativeEvent.data);
                } }));
    }
}

react-native-webview

React Native WebView component for iOS, Android, macOS, and Windows

MIT
Latest version published 19 days ago

Package Health Score

95 / 100
Full package analysis