mirror of
https://github.com/zhigang1992/react-native-paper.git
synced 2026-05-10 13:14:26 +08:00
fix: wrap modal children in SafeAreaView
This commit is contained in:
committed by
Wojtek Szafraniec
parent
16fe177e2a
commit
e034b69ba5
@@ -6,9 +6,9 @@ import {
|
||||
StyleProp,
|
||||
StyleSheet,
|
||||
TouchableWithoutFeedback,
|
||||
View,
|
||||
ViewStyle,
|
||||
} from 'react-native';
|
||||
import SafeAreaView from 'react-native-safe-area-view';
|
||||
import Surface from './Surface';
|
||||
import { withTheme } from '../core/theming';
|
||||
import { Theme } from '../types';
|
||||
@@ -195,7 +195,7 @@ class Modal extends React.Component<Props, State> {
|
||||
]}
|
||||
/>
|
||||
</TouchableWithoutFeedback>
|
||||
<View pointerEvents="box-none" style={styles.wrapper}>
|
||||
<SafeAreaView style={styles.wrapper}>
|
||||
<Surface
|
||||
style={
|
||||
[
|
||||
@@ -207,7 +207,7 @@ class Modal extends React.Component<Props, State> {
|
||||
>
|
||||
{children}
|
||||
</Surface>
|
||||
</View>
|
||||
</SafeAreaView>
|
||||
</Animated.View>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user