File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,13 @@ import {
5
5
View ,
6
6
SafeAreaView ,
7
7
ViewStyle ,
8
- StatusBar ,
9
8
} from 'react-native' ;
10
9
import overlay from '../../styles/overlay' ;
11
10
import Appbar , { DEFAULT_APPBAR_HEIGHT } from './Appbar' ;
12
11
import shadow from '../../styles/shadow' ;
13
12
import { withTheme } from '../../core/theming' ;
14
13
import { Theme } from '../../types' ;
15
14
import { APPROX_STATUSBAR_HEIGHT } from '../../constants' ;
16
- import color from 'color' ;
17
15
18
16
type Props = React . ComponentProps < typeof Appbar > & {
19
17
/**
@@ -110,16 +108,6 @@ class AppbarHeader extends React.Component<Props> {
110
108
// Let the user override the behaviour
111
109
const Wrapper =
112
110
typeof this . props . statusBarHeight === 'number' ? View : SafeAreaView ;
113
- let isDark ;
114
- if ( typeof dark === 'boolean' ) {
115
- isDark = dark ;
116
- } else {
117
- isDark =
118
- backgroundColor === 'transparent'
119
- ? false
120
- : ! color ( backgroundColor ) . isLight ( ) ;
121
- }
122
- StatusBar . setBarStyle ( isDark ? 'light-content' : 'dark-content' ) ;
123
111
124
112
return (
125
113
< Wrapper
You can’t perform that action at this time.
0 commit comments