Browse Source

feat(conference): hide status bar on android devices

factor2
Calin-Teodor 2 years ago
parent
commit
ab809875f7
1 changed files with 17 additions and 2 deletions
  1. 17
    2
      react/features/conference/components/native/Conference.js

+ 17
- 2
react/features/conference/components/native/Conference.js View File

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

Loading…
Cancel
Save