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

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 6598

Trending Articles