title: React Native Router Flux dynamic route
body: <p>In my React Native project I have an import:</p>
  
  <pre><code>import { Actions as NavigationActions } from 'react-native-router-flux'
  </code></pre>
  
  <p>I also have a prop type for a route of <code>this.props.route</code> which equates to 'someRoute'. I would like to use the two together effectively like this:</p>
  
  <pre><code>&lt;TouchableOpacity onPress={NavigationActions.this.props.route}&gt;
  </code></pre>
  
  <p>Obviously that doesn't work but how can use the two together?</p>
  
  <p>I've tried</p>
  
  <pre><code>const { route } = this.props
  &lt;TouchableOpacity onPress={NavigationActions.route}&gt;
  </code></pre>
  
  <p>and also</p>
  
  <pre><code>&lt;TouchableOpacity onPress={{$NavigationActions}.${route}}&gt;
  </code></pre>
  
  <p>but neither work. Can anyone show me what I'm doing wrong</p>