Browse Source

[RN] Use a SafeAreaView for OverlayFrame

master
Saúl Ibarra Corretgé 7 years ago
parent
commit
f7c4133fb7
1 changed files with 6 additions and 6 deletions
  1. 6
    6
      react/features/overlay/components/OverlayFrame.native.js

+ 6
- 6
react/features/overlay/components/OverlayFrame.native.js View File

@@ -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
 }

Loading…
Cancel
Save