Skip to content

Commit 618ce68

Browse files
authored
Merge pull request #15656 from janicduplessis/@janic/status-bar
Make status bar transparent on android
2 parents f4ffc7c + 1c3cbe0 commit 618ce68

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/CustomStatusBar/index.android.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import {StatusBar} from 'react-native';
3-
import themeColors from '../../styles/themes/default';
43

54
/**
65
* Only the Android platform supports "setBackgroundColor"
@@ -9,7 +8,8 @@ import themeColors from '../../styles/themes/default';
98
export default class CustomStatusBar extends React.Component {
109
componentDidMount() {
1110
StatusBar.setBarStyle('light-content');
12-
StatusBar.setBackgroundColor(themeColors.appBG);
11+
StatusBar.setBackgroundColor('transparent');
12+
StatusBar.setTranslucent(true);
1313
}
1414

1515
render() {

0 commit comments

Comments
 (0)