0
 const OnSignInPressed = async () => {
            const formData={email,password}
            const res = await loginUser(formData);
            // await storeToken(res.data.token)
            ConstantId.accessToken = res.data.token;
                console.log("logtoken",res.data.token)
                navigation.navigate(HomeScreen);     
          }

i am able to move to home screen after hitting signin in debug mode but in release apk i installed on my phone i am able to log the token from so the response from backend is perfect the only problem is i am unable to navigate to homescreen

Raghuram
  • 87
  • 9
  • the value inside navigate should be string (the name of screen) not its self – AE0011 May 22 '22 at 08:41
  • Dhanyavaad , fixed it. so givjng screen name works in debug mode but not in the release , i didn't noticed it because all the time it worked perfectly in debug mode when developing – Raghuram May 22 '22 at 09:36

0 Answers0