title: How to set dashboard as first screen after login in react-native
body: <p>I am using react-native where my first screen is Welcome screen and I want to set dashboard on my first screen when the user is login.</p>
  
  <p>Here is my code: </p>
  
  <pre><code>componentWillMount(){
      var self = this;
      AsyncStorage.getItem(AppStrings.contracts.IS_LOGGED_IN).then((json) =&gt;{
          try{
              var userDetail =   JSON.parse(json);
              if(userDetail.isLoggedIn != undefined &amp;&amp; userDetail.isLoggedIn == true){
                  Actions.dashboard();
              }
          }catch(e){
          }
      })
  }
  </code></pre>
  
  <p>I set this code on the Welcome screen and its working fine in IOS. But in android issue is it shows the Welcome screen for 5 to 10 seconds before going to dashboard screen when the user is login.</p>
  
  <p>Here I am using react-native-router-flux for the navigation bar.</p>