React native TouchableOpacity onPress not working on Android : <p>TouchabelOpacity works fine on iOS but the onPress method does not work on Android for me. </p>

<p>My react-native version: 0.57.4</p>

<p>My code:</p>

<pre><code>const initDrawer = navigation =&gt; (
  &lt;TouchableOpacity
    style={{ left: 16 }}
    onPress={() =&gt; onPressDrawerButton(navigation)}
  &gt;
    &lt;Ionicons name="ios-menu" color="white" size={30} /&gt;
  &lt;/TouchableOpacity&gt;
);
</code></pre>
