You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const MyAccountfunc= async ({navigation})=>{
let user = await AsyncStorage.getItem('user'); //it is showing error here
alert(user); //my user contains one mail
if(user==null)
{
alert('Login first')
navigation.navigate('Login')
const MyAccountfunc= async ({navigation})=>{
let user = await AsyncStorage.getItem('user'); //it is showing error here
alert(user); //my user contains one mail
if(user==null)
{
alert('Login first')
navigation.navigate('Login')
}
else{
alert('done')
navigation.navigate('MyAccount')
}
return null
}
const DrawerNavigation = createDrawerNavigator(
{
},
{
initialRouteName: "Home",
contentOptions: {
activeTintColor: "red"
}
}
);
export default createAppContainer(DrawerNavigation);
The text was updated successfully, but these errors were encountered: