title: Redirect to another screen after login. (React Native)
body: <p>So I edited this with just one file; everything is there but I still can't seem to make it work.</p>
  <p><strong>Directory Structure:</strong></p>
  <p><em><a href="https://i.stack.imgur.com/KJvpb.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KJvpb.png" alt="Directory Screenshot" /></a></em></p>
  <p><strong>LoginScreen.js</strong></p>
  <pre><code>import {  StackNavigator, } from 'react-navigation';
  import DrawerScreen from '../Containers/Drawer.js';
  
  
  // PJDS all-in
  import HomeScreen from '../screens/HomeScreen.js';
  import SettingsScreen from '../screens/SettingsScreen.js';
  
  import { DrawerNavigator } from 'react-navigation';
  
  const Navigation=DrawerNavigator({
    Dashboard: {
      screen: HomeScreen
    },
    Course: {
      screen: SettingsScreen
    },
  })
  // PJDS end
  
  class LoginScreen extends Component {
  constructor(props){
      super(props)
  }
  showLogin(props){
      let { onLogin, onLogout, onUser, handleSubmit, auth } = props
      if(auth.access_token === '') {
          return (
          &lt;View &gt;
              &lt;Field style={styles.input} autoCapitalize=&quot;none&quot; placeholder=&quot;Email Cu&quot; component={TInput} name={'email'} /&gt;
              &lt;Field style={styles.input} autoCapitalize=&quot;none&quot; placeholder=&quot;Password&quot; secureTextEntry={true} component={TInput} name={'password'} /&gt;
              &lt;Button
                  title = &quot;Login&quot;
                  color = &quot;#236CF5&quot;
                  style = {{backgroundColor:'#F8F8F8'}}
                  onPress = {handleSubmit(onLogin)}
                  /&gt;
          &lt;/View&gt;
          )
      }
      else {
          return (
              &lt;Navigation /&gt;
          )
      }
  
  }
  render(){
      return this.showLogin(this.props)
     }
  }
  </code></pre>
  <p>After I click login, only a blank screen will appear. There are no errors but when I swipe to the right, no drawer will show up.</p>
  <p>What is the problem here?</p>