Skip to content

Commit f48e30e

Browse files
fix: make status bar work great in all kind of modes
1 parent 3fd10b9 commit f48e30e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/Date/DatePickerModalStatusBar.tsx

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ import * as React from 'react'
22
import { useSafeAreaInsets } from 'react-native-safe-area-context'
33
import { useHeaderBackgroundColor } from '../utils'
44
import Color from 'color'
5-
import {
6-
Platform,
7-
Animated,
8-
StyleSheet,
9-
StatusBar,
10-
StatusBarStyle,
11-
} from 'react-native'
5+
import { Platform, Animated, StatusBar, StatusBarStyle } from 'react-native'
126

137
function DatePickerModalStatusBar({
148
disableSafeTop,
@@ -46,7 +40,6 @@ function DatePickerModalStatusBar({
4640
{!disableSafeTop && !statusBarOnTopOfBackdrop && (
4741
<Animated.View
4842
style={[
49-
styles.animated,
5043
{
5144
backgroundColor: statusBarBackground,
5245
height: insets.top || StatusBar.currentHeight,
@@ -58,7 +51,4 @@ function DatePickerModalStatusBar({
5851
)
5952
}
6053

61-
const styles = StyleSheet.create({
62-
animated: {},
63-
})
6454
export default React.memo(DatePickerModalStatusBar)

0 commit comments

Comments
 (0)