title: I want to pass the email to another screen after login by using React-native authentication flows
body: <p>Pls give me a hand, I just want to pass the email to another screen after login, I only know to do it like this, but when it comes to authentication flows I don't know how to do it :  &lt;Button   title=&quot;Login&quot; onPress={() =&gt; { navigation.navigate('Login', {email: 'myemail@gmail.com', }); }}  /&gt;</p>
  <p>I am kindly using this reference : <a href="https://reactnavigation.org/docs/auth-flow/" rel="nofollow noreferrer">https://reactnavigation.org/docs/auth-flow/</a>
  I just need a hand from here:</p>
  <pre><code>  const authContext = React.useMemo(
  () =&gt; ({
    signIn: async (data) =&gt; {
    
  
      dispatch({ type: 'SIGN_IN', token: 'dummy-auth-token' });
    },
    signOut: () =&gt; dispatch({ type: 'SIGN_OUT' }),
    signUp: async (data) =&gt; {
      // In a production app, we need to send user data to server and get a token
      // We will also need to handle errors if sign up failed
      // After getting token, we need to persist the token using `SecureStore` or any other encrypted storage
      // In the example, we'll use a dummy token
  
      dispatch({ type: 'SIGN_IN', token: 'dummy-auth-token' });
    },
  }),
  []
  </code></pre>
  <p>);</p>