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

React native webview crashes on optional check

$
0
0

when I'm entering a screen, the app just crashes / closes immediately when it's doing this check. It's checking for if webivew is true or false.

Any reason why?

const [webview, setWebview] = useState(false);{webview ? (<View><WebView              style={{  height: "100%", width: "100%" }}              source={{ uri: "https://www.google.com/" }}            /></View>        ) : null}

Viewing all articles
Browse latest Browse all 6287

Trending Articles



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