Ver código fonte

fix(filmstrip) make sure it's not rendered outside of a safe area

master
Saúl Ibarra Corretgé 4 anos atrás
pai
commit
49c38a73aa

+ 4
- 6
react/features/filmstrip/components/native/Filmstrip.js Ver arquivo

@@ -1,9 +1,9 @@
1 1
 // @flow
2 2
 
3 3
 import React, { Component } from 'react';
4
-import { ScrollView } from 'react-native';
4
+import { SafeAreaView, ScrollView } from 'react-native';
5 5
 
6
-import { Container, Platform } from '../../../base/react';
6
+import { Platform } from '../../../base/react';
7 7
 import { connect } from '../../../base/redux';
8 8
 import { ASPECT_RATIO_NARROW } from '../../../base/responsive-ui/constants';
9 9
 import { isFilmstripVisible } from '../../functions';
@@ -91,9 +91,7 @@ class Filmstrip extends Component<Props> {
91 91
         const filmstripStyle = isNarrowAspectRatio ? styles.filmstripNarrow : styles.filmstripWide;
92 92
 
93 93
         return (
94
-            <Container
95
-                style = { filmstripStyle }
96
-                visible = { _visible }>
94
+            <SafeAreaView style = { filmstripStyle }>
97 95
                 {
98 96
                     this._separateLocalThumbnail
99 97
                         && !isNarrowAspectRatio
@@ -126,7 +124,7 @@ class Filmstrip extends Component<Props> {
126 124
                     this._separateLocalThumbnail && isNarrowAspectRatio
127 125
                         && <LocalThumbnail />
128 126
                 }
129
-            </Container>
127
+            </SafeAreaView>
130 128
         );
131 129
     }
132 130
 

Carregando…
Cancelar
Salvar