title: TouchableOpacity not working on android - react native
body: <p>I facing some problem with TouchableOpacity...it works perfectly on ios but not android.
  I'm very sure that i import from &quot;react-native&quot;  Not &quot;react-native-gesture-handler&quot;.</p>
  <p>Then i change to use TouchableHighlight from &quot;react-native-gesture-handler&quot; , remove the one from react-native and its works. But still TouchableOpacity cannot be use either from &quot;react-native&quot; or &quot;react-native-gesture-handler&quot;.</p>
  <p>I never put both &quot;react-native&quot; or &quot;react-native-gesture-handler&quot; at the same time because every time i try to change i will comment out one of them</p>
  <p>I'm stuck now because other screen works perfectly.</p>
  <p>It only happen in this modal screen (below). Can anybody please advice me?</p>
  <p>tq</p>
  <pre><code>      &lt;Modal
          visible={cameraVisible}
          animationType=&quot;slide&quot;
          style={styles.modal}
          transparent={false}
        &gt;
          &lt;SafeAreaView&gt;
            &lt;Button title=&quot;Close&quot; onPress={() =&gt; setCameraVisible(false)} /&gt;
          &lt;/SafeAreaView&gt;
          &lt;Camera
            style={styles.camera}
            type={type}
            ref={(r) =&gt; {
              camera = r;
            }}
          /&gt;
  
          &lt;View
            style={{
              flexDirection: &quot;row&quot;,
              width: screenWidth,
              height: 60,
              backgroundColor: &quot;white&quot;,
              justifyContent: &quot;space-around&quot;,
              alignItems: &quot;center&quot;,
            }}
          &gt;
            &lt;TouchableOpacity
              onPress={() =&gt; {
                setType(
                  type === Camera.Constants.Type.back
                    ? Camera.Constants.Type.front
                    : Camera.Constants.Type.back
                );
              }}
            &gt;
              &lt;Icon name={&quot;camera-retake&quot;} size={40} color=&quot;#076bf7&quot; /&gt;
            &lt;/TouchableOpacity&gt;
            &lt;TouchableOpacity onPress={() =&gt; _takePicture(cameraId1)}&gt;
              &lt;Icon name={&quot;camera-iris&quot;} size={40} color=&quot;#076bf7&quot; /&gt;
            &lt;/TouchableOpacity&gt;
          &lt;/View&gt;
        &lt;/Modal&gt;
  </code></pre>