fix: avoid clicking behind dialogs
This commit is contained in:
parent
e7f9e8e7f7
commit
8dea3389ee
|
@ -4,6 +4,7 @@ import React from 'react';
|
||||||
import {
|
import {
|
||||||
Text,
|
Text,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
|
TouchableWithoutFeedback,
|
||||||
View
|
View
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
|
|
||||||
|
@ -51,8 +52,8 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
|
||||||
const { _dialogStyles, style } = this.props;
|
const { _dialogStyles, style } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<TouchableWithoutFeedback>
|
||||||
<View
|
<View
|
||||||
pointerEvents = 'box-none'
|
|
||||||
style = { [
|
style = { [
|
||||||
styles.overlay,
|
styles.overlay,
|
||||||
style
|
style
|
||||||
|
@ -73,6 +74,7 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
|
||||||
{ this._renderContent() }
|
{ this._renderContent() }
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
|
</TouchableWithoutFeedback>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue