Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
} }));
}
}