@@ -15,8 +15,6 @@ import DatePickerModalContent, {
1515 DatePickerModalContentRangeProps ,
1616 DatePickerModalContentSingleProps ,
1717} from './DatePickerModalContent'
18- import { useHeaderBackgroundColor , useHeaderColorIsLight } from '../utils'
19- import { useSafeAreaInsets } from 'react-native-safe-area-context'
2018
2119interface DatePickerModalProps {
2220 visible : boolean
@@ -61,10 +59,6 @@ export function DatePickerModal(
6159 default : 'slide' ,
6260 } )
6361
64- const isLight = useHeaderColorIsLight ( )
65- const headerBackgroundColor = useHeaderBackgroundColor ( )
66- const insets = useSafeAreaInsets ( )
67-
6862 return (
6963 < View style = { [ StyleSheet . absoluteFill ] } pointerEvents = "box-none" >
7064 < Modal
@@ -98,18 +92,12 @@ export function DatePickerModal(
9892 dimensions . width > 650 ? styles . modalContentBig : null ,
9993 ] }
10094 >
101- { disableStatusBar ? null : (
102- < StatusBar
103- translucent = { true }
104- barStyle = { isLight ? 'dark-content' : 'light-content' }
105- />
106- ) }
10795 { disableStatusBarPadding ? null : (
10896 < View
10997 style = { [
11098 {
111- height : insets . top ,
112- backgroundColor : headerBackgroundColor ,
99+ height : StatusBar . currentHeight ,
100+ backgroundColor : theme . colors . primary ,
113101 } ,
114102 ] }
115103 />
0 commit comments