title: Why currentUser is null after login? React Native Redux
body: <p>I'm learning to use Redux to fetch user's info in React Native but <code>currentUser is null </code>error keeps popping up, I think I set things up properly though. Can someone help me in that?</p>
  <p>Here's my code:</p>
  <pre><code>import React from 'react'
  import { View, Text, Button } from 'react-native';
  import { connect } from 'react-redux';
  
   function Profile(props) {
          const { currentUser } = props;
          console.log({currentUser})  
      
         return (
           &lt;View&gt;
           &lt;Text&gt;{currentUser.name}&lt;/Text&gt;
           &lt;/View&gt;
                 );
       }
  
  
      const mapStateToProps = (store) =&gt; ({
      currentUser: store.userState.currentUser,
    
       })
       export default connect(mapStateToProps, null)(Profile);
  </code></pre>
  <p>And here's how I dispatch data using Redux:</p>
  <pre><code>export function fetchUser() {
      return ((dispatch) =&gt; {
          firebase.firestore()
              .collection(&quot;Users&quot;)
              .doc(firebase.auth().currentUser.uid)
              .get()
              .then((snapshot) =&gt; {
                  if (snapshot.exists) {
                      dispatch({ type: USER_STATE_CHANGE, currentUser: snapshot.data() })
                  }
                  else {
                      console.log('does not exist')
                  }
              })
      })
  }
  </code></pre>