Skip to content

Instantly share code, notes, and snippets.

@tuttarealstep
Created February 22, 2021 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuttarealstep/1001d2961bdcb79c883bd5c5775e9318 to your computer and use it in GitHub Desktop.
Save tuttarealstep/1001d2961bdcb79c883bd5c5775e9318 to your computer and use it in GitHub Desktop.
React.useEffect(() => {
const checkToken = async () => {
let userToken;
try {
userToken = await AsyncStorage.getItem('userToken');
} catch (e) {
}
//todo
console.log(userToken)
};
checkToken();
}, []);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment