React native 如何在我的React Native应用程序中集成Disqs?
我尝试在react native中使用webview实现Discus。。。 代码:React native 如何在我的React Native应用程序中集成Disqs?,react-native,mobile,webview,disqus,react-native-webview,React Native,Mobile,Webview,Disqus,React Native Webview,我尝试在react native中使用webview实现Discus。。。 代码: 上面的代码打开一个react原生webview,然后在应用程序中呈现Discus。。源代码包含由Disqs提供的通用代码。 但它不允许用户登录。。。尝试登录时,它会打开默认浏览器,不会重定向回应用程序。。 非常感谢您在这方面的任何帮助 <AutoHeightWebView ref={webview} source={{ uri: `https://isrmich
上面的代码打开一个react原生webview,然后在应用程序中呈现Discus。。源代码包含由Disqs提供的通用代码。
但它不允许用户登录。。。尝试登录时,它会打开默认浏览器,不会重定向回应用程序。。
非常感谢您在这方面的任何帮助
<AutoHeightWebView
ref={webview}
source={{
uri: `https://isrmicha2.github.io/react-native-disqus-static/?shortname=${shortname}&url=${url}&title=${id}`,
}}
javaScriptEnabled={true}
domStorageEnabled={true}
startInLoadingState={true}
originWhitelist={['*']}
style={{
width: Dimensions.get('window').width - 15,
marginTop: 35,
alignSelf: 'center',
height: Dimensions.get('window').height,
backgroundColor: 'white',
}}
zoomable={false}
thirdPartyCookiesEnabled={true}
/>