From 1c3cbe0eb5904a42e28890f6a43ed54bda2e6541 Mon Sep 17 00:00:00 2001 From: Janic Duplessis Date: Fri, 3 Mar 2023 22:13:08 -0500 Subject: [PATCH] Make status bar transparent on android --- src/components/CustomStatusBar/index.android.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CustomStatusBar/index.android.js b/src/components/CustomStatusBar/index.android.js index fa3f8921e82a..2d3579dbfeba 100644 --- a/src/components/CustomStatusBar/index.android.js +++ b/src/components/CustomStatusBar/index.android.js @@ -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" @@ -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() {