title: navigation.navigate is not a function
body: <p>I'm using navigation to navigate my react native app and I couldn't Paypass this issue. I did as the docs but nothing works for me. </p>
  
  <p>The problem is I'm trying to use the navigation option to add a header and right button to navigate me to another screen, but it keeps giving me this error: "navigation.navigate is not a function. (in navigation.navigate is undefined)</p>
  
  <p>Here is my code:</p>
  
  <pre><code>    static navigationOptions = (navigation) =&gt; {
          return {
              title: 'Review Jobs',
              headerRight: (&lt;Title onPress={()=&gt;{navigation.navigate('settings')}}&gt;Settings&lt;/Title&gt;)
          };
      };
  </code></pre>
  
  <p>thank you </p>