How to set Dashboard screen with drawer as initial root in Navigator in react-native
<p>I have set Initial root as <code>LoginScreen</code> in <code>Navigator</code> (component of react-native).
But after login I want <code>DashboardScreen</code> having drawer as initial root for navigation drawer present in <code>DashboardScreen</code></p>

<p>In <code>App.js</code> for login initial root:</p>

<pre><code>&lt;Navigator
        style={styles.container}
        initialRoute={{id: 'LoginScreen'}}
        renderScene={this.navigatorRenderScene}/&gt;
</code></pre>

<p>In navigatorRenderScene() method, I have declared the different routes in app.
then how to add initial root as <code>DashboardScreen</code> after login success.</p>