fix(toolbox): stop onpress bubbling for components underneath the toolbox

pull/13165/head
Calin-Teodor 2 years ago committed by Calinteodor
parent 2a0b87ee3e
commit c834627949
  1. 8
      react/features/toolbox/components/native/Toolbox.js

@ -1,7 +1,7 @@
// @flow // @flow
import React from 'react'; import React from 'react';
import { View } from 'react-native'; import { TouchableOpacity, View } from 'react-native';
import { SafeAreaView } from 'react-native-safe-area-context'; import { SafeAreaView } from 'react-native-safe-area-context';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
@ -92,8 +92,8 @@ function Toolbox(props: Props) {
} }
return ( return (
<View <TouchableOpacity
pointerEvents = 'box-none' activeOpacity = { 1 }
style = { styles.toolboxContainer }> style = { styles.toolboxContainer }>
<SafeAreaView <SafeAreaView
accessibilityRole = 'toolbar' accessibilityRole = 'toolbar'
@ -135,7 +135,7 @@ function Toolbox(props: Props) {
styles = { hangupButtonStyles } /> styles = { hangupButtonStyles } />
} }
</SafeAreaView> </SafeAreaView>
</View> </TouchableOpacity>
); );
} }

Loading…
Cancel
Save