title: React Native detect tap on View
body: <p>I’m writing a React Native app and I want to detect tap/clicks anywhere on the screen so I put an onClick handler on my <code>&lt;View&gt;</code> element but it doesn’t seem to be working. Here is my render function:</p>
  
  <pre><code>&lt;View style={styles.container} onClick={this.onClick}&gt;
      &lt;Text style={styles.welcome}&gt;
          Tap to change the background
      &lt;/Text&gt;
  &lt;/View&gt;
  </code></pre>
  
  <p>What do I need to do?</p>