React Native: View onPress does not work : <p>I'm facing a weird problem. In my react native app, if I set <code>onPress</code> event to <code>View</code> it is not triggered but if I set the same to <code>Text</code> inside <code>View</code>, it fires. What am I missing here?</p>

<pre><code>&lt;View style={{backgroundColor: "red", padding: 20}}&gt;
  &lt;Text onPress={()=&gt; {
    console.log('works');
    }
  }&gt;X&lt;/Text&gt;
&lt;/View&gt;


&lt;View style={{backgroundColor: "red", padding: 20}} onPress={()=&gt; {
    console.log('does not work');
    }
  }&gt;
  &lt;Text&gt;X&lt;/Text&gt;
&lt;/View&gt;
</code></pre>

<p>Why is this so? Is this an issue with React Native? I'm using version 0.43</p>
