mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-04-30 14:17:55 +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}
|
||||
source={{ html: turnstileHTML }}
|
||||
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}
|
||||
javaScriptEnabled={true}
|
||||
domStorageEnabled={true}
|
||||
originWhitelist={['*']}
|
||||
/>
|
||||
|
||||
{loading && (
|
||||
|
||||
Reference in New Issue
Block a user