We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to implement recaptcha but keep getting errors cannot read properties of undefined (reading 'postMessage')
import WebView from 'react-native-webview'; const getWebviewContent = () => { var originalForm = '<!DOCTYPE html><html><head><script src="https://www.google.com/recaptcha/api.js"></script></head><body><form action="[POST_URL]" method="post"><input type="hidden" value="[TITLE]"><input type="hidden" value="[DESCRIPTION]"><input type="hidden" value="[URL]"><div class="g-recaptcha" data-sitekey="<site-key>"></div><input type="submit" value="Send"/></form></body></html>' var tmp = originalForm .replace("[POST_URL]", "http://localhost:19006/Contact") .replace("[TITLE]", 'title') .replace("[DESCRIPTION]", 'description') .replace("[URL]", 'http://localhost:19006/Contact'); return tmp; } <WebView javaScriptEnabled={true} mixedContentMode={'always'} style={{ height: 500, width: 500 }} source={{ html: getWebviewContent(), baseUrl: '<domain>' // <-- SET YOUR DOMAIN HERE }} />
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to implement recaptcha but keep getting errors cannot read properties of undefined (reading 'postMessage')
The text was updated successfully, but these errors were encountered: