React Native error: undefined is not an object (evaluating '_this2.props.navigator.push')
<p>So Basically I am getting error in the title which is related to the navigator.
The error pops up when I press on the Icon.</p>

<p>What I basically want to do is make a Tab bar at the top that switches between three different views: feed, wiki, and message board</p>

<p>Here is my index.android.js: (imports Nav)</p>

<pre><code>_renderScene(route, navigator) {
    var globalNavigatorProps = {navigator};

    switch(route.ident) {
        case "FeedView":
            return(
                &lt;Feed
                 {...globalNavigatorProps}
                /&gt;
            );

        case "WikiView":
            return(
                &lt;View&gt;
                    &lt;Text&gt;
                        {'Hello'};
                    &lt;/Text&gt;
                &lt;/View&gt;
            );

        case "BoardView":
            return(
                &lt;View&gt;
                    &lt;Text&gt;
                        {'Hello'};
                    &lt;/Text&gt;
                &lt;/View&gt;
            );

        default:
            console.log(`Something went wrong ${route}`);
    }
}

render(){
    return(
        &lt;View&gt;
            &lt;Nav /&gt;
            &lt;Navigator
                initialRoute={{ident:"Feed"}}
                ref="appNavigator"
                renderScene={ this._renderScene }
            /&gt;

        &lt;/View&gt;
    );
}
</code></pre>

<p>Here is my Nav.js:</p>

<pre><code>constructor(props){
    super(props);
}

render(){

    console.log(this.props.navigator);
    return(
        &lt;View style={{flexDirection: "column"}}&gt;
            &lt;View style={styles.nav}&gt;
                &lt;Icon onPress={(event) =&gt; this.props.navigator.push({ident: "Feed"})} name="newspaper-o" size={22}/&gt;
                &lt;Icon name="wikipedia-w" size={22}/&gt;
                &lt;Icon name="comments" size={22}/&gt;
            &lt;/View&gt;
            &lt;View style={styles.divider}/&gt;
        &lt;/View&gt;
    );
}

_changeView(type){

}
</code></pre>