mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-06-13 09:11:03 +00:00
auto-commit for a9df683a-d46f-45f6-833b-d89a300aa683
This commit is contained in:
@@ -146,10 +146,20 @@ export default function HumanVerificationScreen({ navigation }: any) {
|
|||||||
ref={webViewRef}
|
ref={webViewRef}
|
||||||
source={{ html: turnstileHTML }}
|
source={{ html: turnstileHTML }}
|
||||||
onMessage={handleMessage}
|
onMessage={handleMessage}
|
||||||
onLoadEnd={() => setLoading(false)}
|
onLoadStart={() => console.log('WebView started loading')}
|
||||||
|
onLoadEnd={() => {
|
||||||
|
console.log('WebView finished loading');
|
||||||
|
setLoading(false);
|
||||||
|
}}
|
||||||
|
onError={(syntheticEvent) => {
|
||||||
|
const { nativeEvent } = syntheticEvent;
|
||||||
|
console.error('WebView error:', nativeEvent);
|
||||||
|
setError(`WebView Error: ${nativeEvent.description}`);
|
||||||
|
}}
|
||||||
style={styles.webview}
|
style={styles.webview}
|
||||||
javaScriptEnabled={true}
|
javaScriptEnabled={true}
|
||||||
domStorageEnabled={true}
|
domStorageEnabled={true}
|
||||||
|
originWhitelist={['*']}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{loading && (
|
{loading && (
|
||||||
|
|||||||
Reference in New Issue
Block a user