fix: avoid clicking behind dialogs

This commit is contained in:
Bettenbuk Zoltan 2019-07-10 14:39:05 +02:00 committed by Zoltan Bettenbuk
parent e7f9e8e7f7
commit 8dea3389ee
1 changed files with 20 additions and 18 deletions

View File

@ -4,6 +4,7 @@ import React from 'react';
import {
Text,
TouchableOpacity,
TouchableWithoutFeedback,
View
} from 'react-native';
@ -51,8 +52,8 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
const { _dialogStyles, style } = this.props;
return (
<TouchableWithoutFeedback>
<View
pointerEvents = 'box-none'
style = { [
styles.overlay,
style
@ -73,6 +74,7 @@ class BaseDialog<P: Props, S: State> extends AbstractDialog<P, S> {
{ this._renderContent() }
</View>
</View>
</TouchableWithoutFeedback>
);
}