I'm trying to make a simple navigation between login and signup but I get "TypeError : undefined is not an object evaluating '\_this2.props.navigation.navigate'). I don't really understand why.

Code below :

SwitchNavigator.js

```
import React from 'react'
import { createSwitchNavigator, createAppContainer } from 'react-navigation';
import Login from '../screens/Login'
import Signup from '../screens/Signup'
import Profile from "../screens/Profile";

const SwitchNavigator = createSwitchNavigator(
  {
      Login: {
          screen: Login
      },
      Signup: {
          screen: Signup
      },
      Profile: {
          screen: Profile
      }
  },
  {
      initialRouteName: 'Login'
  }
)

export default createAppContainer(SwitchNavigator)

```

Login.js

```
import React from 'react'
import {View, Text, StyleSheet, TouchableOpacity, TextInput, Button} from 'react-native'

class Login extends React.Component {
    state = {
        email: '',
        password: ''
    }

    render() {
        return (
            <View style={styles.container}>
                <Text style={styles.jungleText}>Jungle</Text>
                <TextInput
                    style={styles.inputBox}
                    value={this.state.email}
                    onChangeText={email => this.setState({ email })}
                    placeholder='Email'
                    autoCapitalize='none'
                />
                <TextInput
                  style={styles.inputBox}
                  value={this.state.password}
                  onChangeText={password => this.setState({ password })}
                  placeholder='Password'
                  secureTextEntry={true}
                />
                <TouchableOpacity style={styles.button}>
                    <Text style={styles.buttonText}>Login</Text>
                </TouchableOpacity>
              <Button
                title="Don't have an account yet? Sign up"
                onPress={() => this.props.navigation.navigate('Signup')}
              />
            </View>
        )
    }
}

export default Login

```

Thanks a lot for helping me !