Przeglądaj źródła

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

j8
Saúl Ibarra Corretgé 4 lat temu
rodzic
commit
49c38a73aa

+ 4
- 6
react/features/filmstrip/components/native/Filmstrip.js Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz