title: How to call redux action from static navigationOptions?
body: <p>I need to call a action from static navigationOptions but cannot access my action through this.props. How to call this action? I am getting error "Cannot read property 'logout' of undefined" in console.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>static navigationOptions = ({navigation}) =&gt;( {
          title: 'Home',
          header: &lt;Header headerTitle={navigation.state.routeName} logoutButtonPress={() =&gt; {
          this.props.logout(); // this action is not working 
                  NavigationActions.reset({
                      index: 0,
                      actions: [NavigationActions.navigate({ routeName: "Welcome" })]
                  })
                  navigation.navigate('Welcome');
              }
              }
          /&gt;,
        });</code></pre>
  </div>
  </div>
  </p>