瀏覽代碼

feat(conference): hide status bar on android devices

factor2
Calin-Teodor 2 年之前
父節點
當前提交
ab809875f7
共有 1 個檔案被更改,包括 17 行新增2 行删除
  1. 17
    2
      react/features/conference/components/native/Conference.js

+ 17
- 2
react/features/conference/components/native/Conference.js 查看文件

@@ -2,7 +2,14 @@
2 2
 
3 3
 import { useIsFocused } from '@react-navigation/native';
4 4
 import React, { useEffect } from 'react';
5
-import { BackHandler, NativeModules, SafeAreaView, View } from 'react-native';
5
+import {
6
+    BackHandler,
7
+    NativeModules,
8
+    Platform,
9
+    SafeAreaView,
10
+    StatusBar,
11
+    View
12
+} from 'react-native';
6 13
 import { withSafeAreaInsets } from 'react-native-safe-area-context';
7 14
 import { connect } from 'react-redux';
8 15
 
@@ -267,7 +274,8 @@ class Conference extends AbstractConference<Props, State> {
267 274
      */
268 275
     render() {
269 276
         const {
270
-            _brandingStyles
277
+            _brandingStyles,
278
+            _fullscreenEnabled
271 279
         } = this.props;
272 280
 
273 281
         return (
@@ -277,6 +285,13 @@ class Conference extends AbstractConference<Props, State> {
277 285
                     _brandingStyles
278 286
                 ] }>
279 287
                 <BrandingImageBackground />
288
+                {
289
+                    Platform.OS === 'android'
290
+                    && <StatusBar
291
+                        barStyle = 'light-content'
292
+                        hidden = { _fullscreenEnabled }
293
+                        translucent = { _fullscreenEnabled } />
294
+                }
280 295
                 { this._renderContent() }
281 296
             </Container>
282 297
         );

Loading…
取消
儲存