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

Execution flow in react native after navigation.navigate

$
0
0

Need suggestion and advice,

I am using the below 2 lines of code in react native expo component,

this.props.navigation.navigate("App"); patchUser(this.state.dataSource.userInfo.username, this.state.dataSource.userInfo.firstName,this.state.dataSource.userInfo.lastName, this.state.dataSource.lastLoginTime);

my question:

will "patchUser()" be called always ? since this.props.navigation.navigate("App") has been executed before and it takes to another component ?

regards


Viewing all articles
Browse latest Browse all 6214

Trending Articles



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