Skip to content

Commit

Permalink
Make status bar transparent on android
Browse files Browse the repository at this point in the history
  • Loading branch information
janicduplessis committed Mar 4, 2023
1 parent a7c196f commit 1c3cbe0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/CustomStatusBar/index.android.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';
import {StatusBar} from 'react-native';
import themeColors from '../../styles/themes/default';

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

render() {
Expand Down

0 comments on commit 1c3cbe0

Please sign in to comment.