Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6291

Property 'uri' does not exist on type 'WebViewSource' in React Native Webview component

$
0
0

I have the following TypeScript error:

Property 'uri' does not exist on type 'WebViewSource'.  Property 'uri' does not exist on type 'WebViewSourceHtml'.ts(2339)

For the code:

import {WebView, WebViewProps} from 'react-native-webview';return(<TouchableOpacity            onPress={() => openLinkInNativeBrowser(route?.params?.source?.uri)}><VectorImage              source={SafariIcon}              style={styles.webViewSafariIconVector}            /></TouchableOpacity>);

It looks like I need to get types from Webview but I am not sure where they are.


Viewing all articles
Browse latest Browse all 6291

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>