undefined is not an object (evaluating'_this2.props.navigation.navigate') - React Native











up vote
0
down vote

favorite












I am having trouble navigating through screens with a simple button.
This is my App.js



export default class App extends Component<Props> {
render() {
return (
<AppStackNavigator/>
);
}
}
const AppStackNavigator = StackNavigator({
Login: { screen: LoginScreen },
Home: { screen: HomeScreen },

},{
navigationOptions: {
gesturesEnabled:false
}
})


Login.js



export default class Login extends Component {
render() {
return(
<SafeAreaView style={styles.container}>
<StatusBar barStyle='light-content'/>
<KeyboardAvoidingView behavior='padding' style={styles.container}>
<TouchableWithoutFeedback style={styles.container} onPress={Keyboard.dismiss}>
<View style={styles.logoContainer}>
<View style={styles.logoContainer}>
<Image style={styles.logo}
source={require('../images/logo/logo.png')}>
</Image>
<Text style={styles.title}>
Sports Chat App
</Text>
</View>
<View style={styles.infoContainer}>
<TextInput style={styles.input}
placeholder="Enter name"
placeholderTextColor='#ffffff'
keyboardType='default'
returnKeyType='next'
autoCorrect={false}
onSubmitEditing={()=> this.refs.phoneNumber.focus()}
/>
<TextInput style={styles.input}
placeholder="Enter phone number"
placeholderTextColor='#ffffff'
keyboardType='phone-pad'
ref={'phoneNumber'}
/>
<TouchableOpacity style={styles.buttonContainer}>
<Button title='LogIn' onPress={()=>this.props.navigation.navigate('Home')}/>
</TouchableOpacity>
</View>
</View>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
</SafeAreaView>
)
}
};


LoginScreen.js



class LoginScreen extends Component {
render(){
return (

<View>
<Login>
</Login>
</View>
);
}
}


I keep getting the error undefined is not an object (evaluating'_this2.props.navigation.navigate') whenever i try use the Login button in Login.js,
I want this to navigate to the home screen but cant figure out why this keeps happening.
If i try do it without the components it works fine.



Click to View error message










share|improve this question
























  • try adding a constructor in your login.js constructor(props){ super(props) }
    – Ziyo
    Nov 12 at 1:01















up vote
0
down vote

favorite












I am having trouble navigating through screens with a simple button.
This is my App.js



export default class App extends Component<Props> {
render() {
return (
<AppStackNavigator/>
);
}
}
const AppStackNavigator = StackNavigator({
Login: { screen: LoginScreen },
Home: { screen: HomeScreen },

},{
navigationOptions: {
gesturesEnabled:false
}
})


Login.js



export default class Login extends Component {
render() {
return(
<SafeAreaView style={styles.container}>
<StatusBar barStyle='light-content'/>
<KeyboardAvoidingView behavior='padding' style={styles.container}>
<TouchableWithoutFeedback style={styles.container} onPress={Keyboard.dismiss}>
<View style={styles.logoContainer}>
<View style={styles.logoContainer}>
<Image style={styles.logo}
source={require('../images/logo/logo.png')}>
</Image>
<Text style={styles.title}>
Sports Chat App
</Text>
</View>
<View style={styles.infoContainer}>
<TextInput style={styles.input}
placeholder="Enter name"
placeholderTextColor='#ffffff'
keyboardType='default'
returnKeyType='next'
autoCorrect={false}
onSubmitEditing={()=> this.refs.phoneNumber.focus()}
/>
<TextInput style={styles.input}
placeholder="Enter phone number"
placeholderTextColor='#ffffff'
keyboardType='phone-pad'
ref={'phoneNumber'}
/>
<TouchableOpacity style={styles.buttonContainer}>
<Button title='LogIn' onPress={()=>this.props.navigation.navigate('Home')}/>
</TouchableOpacity>
</View>
</View>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
</SafeAreaView>
)
}
};


LoginScreen.js



class LoginScreen extends Component {
render(){
return (

<View>
<Login>
</Login>
</View>
);
}
}


I keep getting the error undefined is not an object (evaluating'_this2.props.navigation.navigate') whenever i try use the Login button in Login.js,
I want this to navigate to the home screen but cant figure out why this keeps happening.
If i try do it without the components it works fine.



Click to View error message










share|improve this question
























  • try adding a constructor in your login.js constructor(props){ super(props) }
    – Ziyo
    Nov 12 at 1:01













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am having trouble navigating through screens with a simple button.
This is my App.js



export default class App extends Component<Props> {
render() {
return (
<AppStackNavigator/>
);
}
}
const AppStackNavigator = StackNavigator({
Login: { screen: LoginScreen },
Home: { screen: HomeScreen },

},{
navigationOptions: {
gesturesEnabled:false
}
})


Login.js



export default class Login extends Component {
render() {
return(
<SafeAreaView style={styles.container}>
<StatusBar barStyle='light-content'/>
<KeyboardAvoidingView behavior='padding' style={styles.container}>
<TouchableWithoutFeedback style={styles.container} onPress={Keyboard.dismiss}>
<View style={styles.logoContainer}>
<View style={styles.logoContainer}>
<Image style={styles.logo}
source={require('../images/logo/logo.png')}>
</Image>
<Text style={styles.title}>
Sports Chat App
</Text>
</View>
<View style={styles.infoContainer}>
<TextInput style={styles.input}
placeholder="Enter name"
placeholderTextColor='#ffffff'
keyboardType='default'
returnKeyType='next'
autoCorrect={false}
onSubmitEditing={()=> this.refs.phoneNumber.focus()}
/>
<TextInput style={styles.input}
placeholder="Enter phone number"
placeholderTextColor='#ffffff'
keyboardType='phone-pad'
ref={'phoneNumber'}
/>
<TouchableOpacity style={styles.buttonContainer}>
<Button title='LogIn' onPress={()=>this.props.navigation.navigate('Home')}/>
</TouchableOpacity>
</View>
</View>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
</SafeAreaView>
)
}
};


LoginScreen.js



class LoginScreen extends Component {
render(){
return (

<View>
<Login>
</Login>
</View>
);
}
}


I keep getting the error undefined is not an object (evaluating'_this2.props.navigation.navigate') whenever i try use the Login button in Login.js,
I want this to navigate to the home screen but cant figure out why this keeps happening.
If i try do it without the components it works fine.



Click to View error message










share|improve this question















I am having trouble navigating through screens with a simple button.
This is my App.js



export default class App extends Component<Props> {
render() {
return (
<AppStackNavigator/>
);
}
}
const AppStackNavigator = StackNavigator({
Login: { screen: LoginScreen },
Home: { screen: HomeScreen },

},{
navigationOptions: {
gesturesEnabled:false
}
})


Login.js



export default class Login extends Component {
render() {
return(
<SafeAreaView style={styles.container}>
<StatusBar barStyle='light-content'/>
<KeyboardAvoidingView behavior='padding' style={styles.container}>
<TouchableWithoutFeedback style={styles.container} onPress={Keyboard.dismiss}>
<View style={styles.logoContainer}>
<View style={styles.logoContainer}>
<Image style={styles.logo}
source={require('../images/logo/logo.png')}>
</Image>
<Text style={styles.title}>
Sports Chat App
</Text>
</View>
<View style={styles.infoContainer}>
<TextInput style={styles.input}
placeholder="Enter name"
placeholderTextColor='#ffffff'
keyboardType='default'
returnKeyType='next'
autoCorrect={false}
onSubmitEditing={()=> this.refs.phoneNumber.focus()}
/>
<TextInput style={styles.input}
placeholder="Enter phone number"
placeholderTextColor='#ffffff'
keyboardType='phone-pad'
ref={'phoneNumber'}
/>
<TouchableOpacity style={styles.buttonContainer}>
<Button title='LogIn' onPress={()=>this.props.navigation.navigate('Home')}/>
</TouchableOpacity>
</View>
</View>
</TouchableWithoutFeedback>
</KeyboardAvoidingView>
</SafeAreaView>
)
}
};


LoginScreen.js



class LoginScreen extends Component {
render(){
return (

<View>
<Login>
</Login>
</View>
);
}
}


I keep getting the error undefined is not an object (evaluating'_this2.props.navigation.navigate') whenever i try use the Login button in Login.js,
I want this to navigate to the home screen but cant figure out why this keeps happening.
If i try do it without the components it works fine.



Click to View error message







react-native






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 12 at 11:25

























asked Nov 11 at 16:46









Liam Ramsbottom

12




12












  • try adding a constructor in your login.js constructor(props){ super(props) }
    – Ziyo
    Nov 12 at 1:01


















  • try adding a constructor in your login.js constructor(props){ super(props) }
    – Ziyo
    Nov 12 at 1:01
















try adding a constructor in your login.js constructor(props){ super(props) }
– Ziyo
Nov 12 at 1:01




try adding a constructor in your login.js constructor(props){ super(props) }
– Ziyo
Nov 12 at 1:01












2 Answers
2






active

oldest

votes

















up vote
0
down vote













App.js



import React, { Component } from "react";
import { Text, View } from "react-native";
import AppStackNavigator from "./AppStackNavigator";

export default class App extends Component<Props> {
render() {
return <AppStackNavigator />;
}
}


AppStackNavigator



    import React, { Component } from "react";
import { StackNavigator } from "react-navigation";
import { View, Text, TouchableOpacity } from "react-native";

const LoginScreen = props => (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<Login navigation={props.navigation} />
</View>
);

const HomeScreen = () => (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<Text>Home</Text>
</View>
);

const Login = props => (
<View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
<TouchableOpacity
onPress={() => {
props.navigation.navigate("Home");
}}
>
<Text>GO to home from login</Text>
</TouchableOpacity>
</View>
);

export default (AppStackNavigator = StackNavigator(
{
Login: { screen: LoginScreen },
Home: { screen: HomeScreen }
},
{
headerMode: "none",
navigationOptions: {
gesturesEnabled: false
}
}
));





share|improve this answer























  • i added this to the LoginScreen and still no change, i also tired adding the constructor to the Login.js. same error keeps coming up
    – Liam Ramsbottom
    Nov 12 at 10:11










  • I have edited my answer, can you check if that helps ? @LiamRamsbottom
    – mosabbir tuhin
    Nov 12 at 10:44












  • No I keep getting the same error. I think the problem is in the Login.js file, the emulator is pointing me towards the onPress function. I have edited the above question to add the emulator screen
    – Liam Ramsbottom
    Nov 12 at 11:24










  • Replace your LoginScreen.js render with below code mentioned by @Ian Zhong - Thanks
    – mosabbir tuhin
    Nov 12 at 12:21










  • I tried getting rid of the button in Login.js and have the touchableOpacity as follows.
    – Liam Ramsbottom
    Nov 12 at 12:52


















up vote
0
down vote













Add a navigation props to Login in LoginScreen.js, Because LoginScreen has props navigation but Login don't.



   render(){
return (
<View>
<Login navigation ={this.props.navigation}>
</Login>
</View>
);
}





share|improve this answer





















    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53250939%2fundefined-is-not-an-object-evaluating-this2-props-navigation-navigate-reac%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    App.js



    import React, { Component } from "react";
    import { Text, View } from "react-native";
    import AppStackNavigator from "./AppStackNavigator";

    export default class App extends Component<Props> {
    render() {
    return <AppStackNavigator />;
    }
    }


    AppStackNavigator



        import React, { Component } from "react";
    import { StackNavigator } from "react-navigation";
    import { View, Text, TouchableOpacity } from "react-native";

    const LoginScreen = props => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <Login navigation={props.navigation} />
    </View>
    );

    const HomeScreen = () => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <Text>Home</Text>
    </View>
    );

    const Login = props => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <TouchableOpacity
    onPress={() => {
    props.navigation.navigate("Home");
    }}
    >
    <Text>GO to home from login</Text>
    </TouchableOpacity>
    </View>
    );

    export default (AppStackNavigator = StackNavigator(
    {
    Login: { screen: LoginScreen },
    Home: { screen: HomeScreen }
    },
    {
    headerMode: "none",
    navigationOptions: {
    gesturesEnabled: false
    }
    }
    ));





    share|improve this answer























    • i added this to the LoginScreen and still no change, i also tired adding the constructor to the Login.js. same error keeps coming up
      – Liam Ramsbottom
      Nov 12 at 10:11










    • I have edited my answer, can you check if that helps ? @LiamRamsbottom
      – mosabbir tuhin
      Nov 12 at 10:44












    • No I keep getting the same error. I think the problem is in the Login.js file, the emulator is pointing me towards the onPress function. I have edited the above question to add the emulator screen
      – Liam Ramsbottom
      Nov 12 at 11:24










    • Replace your LoginScreen.js render with below code mentioned by @Ian Zhong - Thanks
      – mosabbir tuhin
      Nov 12 at 12:21










    • I tried getting rid of the button in Login.js and have the touchableOpacity as follows.
      – Liam Ramsbottom
      Nov 12 at 12:52















    up vote
    0
    down vote













    App.js



    import React, { Component } from "react";
    import { Text, View } from "react-native";
    import AppStackNavigator from "./AppStackNavigator";

    export default class App extends Component<Props> {
    render() {
    return <AppStackNavigator />;
    }
    }


    AppStackNavigator



        import React, { Component } from "react";
    import { StackNavigator } from "react-navigation";
    import { View, Text, TouchableOpacity } from "react-native";

    const LoginScreen = props => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <Login navigation={props.navigation} />
    </View>
    );

    const HomeScreen = () => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <Text>Home</Text>
    </View>
    );

    const Login = props => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <TouchableOpacity
    onPress={() => {
    props.navigation.navigate("Home");
    }}
    >
    <Text>GO to home from login</Text>
    </TouchableOpacity>
    </View>
    );

    export default (AppStackNavigator = StackNavigator(
    {
    Login: { screen: LoginScreen },
    Home: { screen: HomeScreen }
    },
    {
    headerMode: "none",
    navigationOptions: {
    gesturesEnabled: false
    }
    }
    ));





    share|improve this answer























    • i added this to the LoginScreen and still no change, i also tired adding the constructor to the Login.js. same error keeps coming up
      – Liam Ramsbottom
      Nov 12 at 10:11










    • I have edited my answer, can you check if that helps ? @LiamRamsbottom
      – mosabbir tuhin
      Nov 12 at 10:44












    • No I keep getting the same error. I think the problem is in the Login.js file, the emulator is pointing me towards the onPress function. I have edited the above question to add the emulator screen
      – Liam Ramsbottom
      Nov 12 at 11:24










    • Replace your LoginScreen.js render with below code mentioned by @Ian Zhong - Thanks
      – mosabbir tuhin
      Nov 12 at 12:21










    • I tried getting rid of the button in Login.js and have the touchableOpacity as follows.
      – Liam Ramsbottom
      Nov 12 at 12:52













    up vote
    0
    down vote










    up vote
    0
    down vote









    App.js



    import React, { Component } from "react";
    import { Text, View } from "react-native";
    import AppStackNavigator from "./AppStackNavigator";

    export default class App extends Component<Props> {
    render() {
    return <AppStackNavigator />;
    }
    }


    AppStackNavigator



        import React, { Component } from "react";
    import { StackNavigator } from "react-navigation";
    import { View, Text, TouchableOpacity } from "react-native";

    const LoginScreen = props => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <Login navigation={props.navigation} />
    </View>
    );

    const HomeScreen = () => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <Text>Home</Text>
    </View>
    );

    const Login = props => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <TouchableOpacity
    onPress={() => {
    props.navigation.navigate("Home");
    }}
    >
    <Text>GO to home from login</Text>
    </TouchableOpacity>
    </View>
    );

    export default (AppStackNavigator = StackNavigator(
    {
    Login: { screen: LoginScreen },
    Home: { screen: HomeScreen }
    },
    {
    headerMode: "none",
    navigationOptions: {
    gesturesEnabled: false
    }
    }
    ));





    share|improve this answer














    App.js



    import React, { Component } from "react";
    import { Text, View } from "react-native";
    import AppStackNavigator from "./AppStackNavigator";

    export default class App extends Component<Props> {
    render() {
    return <AppStackNavigator />;
    }
    }


    AppStackNavigator



        import React, { Component } from "react";
    import { StackNavigator } from "react-navigation";
    import { View, Text, TouchableOpacity } from "react-native";

    const LoginScreen = props => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <Login navigation={props.navigation} />
    </View>
    );

    const HomeScreen = () => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <Text>Home</Text>
    </View>
    );

    const Login = props => (
    <View style={{ flex: 1, justifyContent: "center", alignItems: "center" }}>
    <TouchableOpacity
    onPress={() => {
    props.navigation.navigate("Home");
    }}
    >
    <Text>GO to home from login</Text>
    </TouchableOpacity>
    </View>
    );

    export default (AppStackNavigator = StackNavigator(
    {
    Login: { screen: LoginScreen },
    Home: { screen: HomeScreen }
    },
    {
    headerMode: "none",
    navigationOptions: {
    gesturesEnabled: false
    }
    }
    ));






    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Nov 12 at 10:43

























    answered Nov 12 at 7:07









    mosabbir tuhin

    14




    14












    • i added this to the LoginScreen and still no change, i also tired adding the constructor to the Login.js. same error keeps coming up
      – Liam Ramsbottom
      Nov 12 at 10:11










    • I have edited my answer, can you check if that helps ? @LiamRamsbottom
      – mosabbir tuhin
      Nov 12 at 10:44












    • No I keep getting the same error. I think the problem is in the Login.js file, the emulator is pointing me towards the onPress function. I have edited the above question to add the emulator screen
      – Liam Ramsbottom
      Nov 12 at 11:24










    • Replace your LoginScreen.js render with below code mentioned by @Ian Zhong - Thanks
      – mosabbir tuhin
      Nov 12 at 12:21










    • I tried getting rid of the button in Login.js and have the touchableOpacity as follows.
      – Liam Ramsbottom
      Nov 12 at 12:52


















    • i added this to the LoginScreen and still no change, i also tired adding the constructor to the Login.js. same error keeps coming up
      – Liam Ramsbottom
      Nov 12 at 10:11










    • I have edited my answer, can you check if that helps ? @LiamRamsbottom
      – mosabbir tuhin
      Nov 12 at 10:44












    • No I keep getting the same error. I think the problem is in the Login.js file, the emulator is pointing me towards the onPress function. I have edited the above question to add the emulator screen
      – Liam Ramsbottom
      Nov 12 at 11:24










    • Replace your LoginScreen.js render with below code mentioned by @Ian Zhong - Thanks
      – mosabbir tuhin
      Nov 12 at 12:21










    • I tried getting rid of the button in Login.js and have the touchableOpacity as follows.
      – Liam Ramsbottom
      Nov 12 at 12:52
















    i added this to the LoginScreen and still no change, i also tired adding the constructor to the Login.js. same error keeps coming up
    – Liam Ramsbottom
    Nov 12 at 10:11




    i added this to the LoginScreen and still no change, i also tired adding the constructor to the Login.js. same error keeps coming up
    – Liam Ramsbottom
    Nov 12 at 10:11












    I have edited my answer, can you check if that helps ? @LiamRamsbottom
    – mosabbir tuhin
    Nov 12 at 10:44






    I have edited my answer, can you check if that helps ? @LiamRamsbottom
    – mosabbir tuhin
    Nov 12 at 10:44














    No I keep getting the same error. I think the problem is in the Login.js file, the emulator is pointing me towards the onPress function. I have edited the above question to add the emulator screen
    – Liam Ramsbottom
    Nov 12 at 11:24




    No I keep getting the same error. I think the problem is in the Login.js file, the emulator is pointing me towards the onPress function. I have edited the above question to add the emulator screen
    – Liam Ramsbottom
    Nov 12 at 11:24












    Replace your LoginScreen.js render with below code mentioned by @Ian Zhong - Thanks
    – mosabbir tuhin
    Nov 12 at 12:21




    Replace your LoginScreen.js render with below code mentioned by @Ian Zhong - Thanks
    – mosabbir tuhin
    Nov 12 at 12:21












    I tried getting rid of the button in Login.js and have the touchableOpacity as follows.
    – Liam Ramsbottom
    Nov 12 at 12:52




    I tried getting rid of the button in Login.js and have the touchableOpacity as follows.
    – Liam Ramsbottom
    Nov 12 at 12:52












    up vote
    0
    down vote













    Add a navigation props to Login in LoginScreen.js, Because LoginScreen has props navigation but Login don't.



       render(){
    return (
    <View>
    <Login navigation ={this.props.navigation}>
    </Login>
    </View>
    );
    }





    share|improve this answer

























      up vote
      0
      down vote













      Add a navigation props to Login in LoginScreen.js, Because LoginScreen has props navigation but Login don't.



         render(){
      return (
      <View>
      <Login navigation ={this.props.navigation}>
      </Login>
      </View>
      );
      }





      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        Add a navigation props to Login in LoginScreen.js, Because LoginScreen has props navigation but Login don't.



           render(){
        return (
        <View>
        <Login navigation ={this.props.navigation}>
        </Login>
        </View>
        );
        }





        share|improve this answer












        Add a navigation props to Login in LoginScreen.js, Because LoginScreen has props navigation but Login don't.



           render(){
        return (
        <View>
        <Login navigation ={this.props.navigation}>
        </Login>
        </View>
        );
        }






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Nov 12 at 12:04









        Ian Zhong

        44919




        44919






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53250939%2fundefined-is-not-an-object-evaluating-this2-props-navigation-navigate-reac%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Guess what letter conforming each word

            Port of Spain

            Run scheduled task as local user group (not BUILTIN)