title: Adding multiple events to onPress function in React Native
body: <p>When I press the button, it supposed to navigate to another page and it also increase the view count. </p>
  
  <p>But I can't figure out anyway to implement them at the same time.</p>
  
  <p>This is my code:</p>
  
  <pre><code>&lt;Button onPress={Actions.ideaOnClick}&gt;
  &lt;Button onPress={() =&gt; this.setState({views: ++this.state.views})}&gt;
  </code></pre>