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

how to call a navigation inside a function which is outside from class in react native

$
0
0
function logOut(ext_id)      {        console.log(ext_id);        navigation.replace('UserScreen');      }

in this function. i want to call a navigation but it's show me an error like "Property 'navigation' doesn't exist"


Viewing all articles
Browse latest Browse all 6287

Trending Articles



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