I am trying to open this page to test NTLM login in my react-native app:
link: https://authenticationtest.com/HTTPAuth/
the code:
return (
<View style={styles.root}>
<View>
<ProgressBar
progress={loadingProgress}
color={theme.palette.primary.main}
visible={loadingProgress < 1}
/>
</View>
<WebView
source={{ uri: 'https://authenticationtest.com/HTTPAuth/'}}
useWebView2={true}
javaScriptEnabled={true}
domStorageEnabled={true}
javaScriptCanOpenWindowsAutomatically={true}
style={styles.container}
useWebKit
sharedCookiesEnabled={true}
incognito={true}
startInLoadingState={true}
setSupportMultipleWindows={false}
onLoadProgress={({ nativeEvent }) => {
setLoadingProgress(nativeEvent.progress);
}}
/>
</View>
);
I used javaScriptEnabled={true} but didn't worked..
Code:
Online playground: https://snack.expo.dev/@vasylnahuliak/76295278
Source workaround: https://github.com/react-native-webview/react-native-webview/issues/18#issuecomment-532859482