title: React Native Proper Initial Redux(with AsyncStorage) States
body: <p>I'm trying to be able to start up my App as either going unto Homescreen if logged in or to Sign Up screen if not using Redux Initial state and also Async Storage.</p>
  <p>I have below code but everytime I try to access the userInfo in main App it always signs in my App and goes directly to homescreen even if no log in sessions has been done yet.</p>
  <p>Surprisingly, I tried to log the initial userInfo which should be null if accessed from the AsyncStorage from the initial state but it shows below. It seems AsyncStorage creates this Object hence the App thinks that userInfo is not null.
  {&quot;_1&quot;: 0, &quot;_2&quot;: 1, &quot;_3&quot;: undefined, &quot;_4&quot;: null}</p>
  <p>Do appreciate any replies/help. Thanks in advance.</p>
  <pre><code>import AsyncStorage from '@react-native-async-storage/async-storage';
  import thunk from 'redux-thunk'
  import { composeWithDevTools } from '@redux-devtools/extension';
  import { userSignUpReducer, userSignInReducer }from './reducers/userReducers';
  
  const getData = async (key) =&gt; {
  let value;
  try {
      if(key=== 'userInfo'){
       value = await AsyncStorage.getItem(key) ? JSON.parse(AsyncStorage.getItem(key)) : null
       console.log(value)
       return
      }
      value = await AsyncStorage.getItem(key) ? JSON.parse(AsyncStorage.getItem(key)) : []
  } catch (error) {
   console.log(error); 
  }
    return value
  };
  
  const reducer = combineReducers({
    userSignIn: userSignInReducer,
    userSignUp: userSignUpReducer,
  })
  
  const initialState = {
     userSignIn: { userInfo: getData('userInfo')}
  };
  
  const configureStore = () =&gt; {
      return createStore(reducer,initialState,composeWithDevTools(applyMiddleware(thunk)));
  }
  
  
  export default configureStore; 
  </code></pre>