|
|
@@ -1,7 +1,7 @@
|
|
1
|
1
|
// @flow
|
|
2
|
2
|
|
|
3
|
|
-import React, { Component } from 'react';
|
|
4
|
|
-import { View } from 'react-native';
|
|
|
3
|
+import React, { Component, type Node } from 'react';
|
|
|
4
|
+import { SafeAreaView } from 'react-native';
|
|
5
|
5
|
|
|
6
|
6
|
import { overlayFrame as styles } from './styles';
|
|
7
|
7
|
|
|
|
@@ -13,7 +13,7 @@ type Props = {
|
|
13
|
13
|
/**
|
|
14
|
14
|
* The children components to be displayed into the overlay frame.
|
|
15
|
15
|
*/
|
|
16
|
|
- children?: React$Node,
|
|
|
16
|
+ children: Node,
|
|
17
|
17
|
};
|
|
18
|
18
|
|
|
19
|
19
|
/**
|
|
|
@@ -24,13 +24,13 @@ export default class OverlayFrame extends Component<Props> {
|
|
24
|
24
|
* Implements React's {@link Component#render()}.
|
|
25
|
25
|
*
|
|
26
|
26
|
* @inheritdoc
|
|
27
|
|
- * @returns {React$Element}
|
|
|
27
|
+ * @returns {ReactElement}
|
|
28
|
28
|
*/
|
|
29
|
29
|
render() {
|
|
30
|
30
|
return (
|
|
31
|
|
- <View style = { styles.container }>
|
|
|
31
|
+ <SafeAreaView style = { styles.container }>
|
|
32
|
32
|
{ this.props.children }
|
|
33
|
|
- </View>
|
|
|
33
|
+ </SafeAreaView>
|
|
34
|
34
|
);
|
|
35
|
35
|
}
|
|
36
|
36
|
}
|