title: React-native: Undefined is not an object (evaluating 'this.props.navigation')
body: <p>would love to use your help. 
  I'm messing around with stack-navigator in react-native but I've been stuck now for a while on the error mentioned in the title. I made the code the most basic I can but still cant figure out the bug. I guess it's something about the accessibility of this.props but I dont understand it yet..</p>
  
  <p>Heres the code:</p>
  
  <p>App.js</p>
  
  <pre><code>import React, {Component} from 'react';
  import {AppRegistry,Animated,DeviceEventEmitter,Text,View,StyleSheet,TouchableHighlight,TouchableOpacity,TextInput,Button,Image,Dimensions} from 'react-native';
  import {StackNavigator} from '/Users/amitnelinger/Desktop/MobileProjects/newProj/node_modules/react-navigation'
  
  
  
  
  const App = (props) =&gt; {
      return(
       const { navigate } = props.navigation;
       &lt;View&gt;
                  &lt;Button 
                      onPress={() =&gt; navigate('song')} 
                      title = "MotherFucker Jones"
                  /&gt;  
  
        &lt;/View&gt;
      );
   }
  
  App.navigationOptions = {
      title: 'Home screen',
  };
  
  export default App
  </code></pre>
  
  <p>index.ios.js</p>
  
  <pre><code>import React, {Component} from 'react';
  import {AppRegistry,Animated,DeviceEventEmitter,Text,View,StyleSheet,TouchableHighlight,TouchableOpacity,TextInput,Button,Image,Dimensions} from 'react-native';
  
  import App from '/Users/amitnelinger/Desktop/MobileProjects/newProj/app/components/App.js'
  import song from '/Users/amitnelinger/Desktop/MobileProjects/newProj/app/components/song.js'
  import {StackNavigator} from '/Users/amitnelinger/Desktop/MobileProjects/newProj/node_modules/react-navigation'
  
  export default class newProj extends Component{
  
      render(){
          const { navigation } = this.props;
  
          return(
              &lt;App navigation = { navigation } /&gt;
          );
      }
  }
  
  const simpleApp = StackNavigator({
      Home: {screen: App},
      song: {screen: song}
  });
  
  AppRegistry.registerComponent('newProj',() =&gt; newProj)
  </code></pre>