@@ -7,11 +7,12 @@ import {
77 TouchableOpacity ,
88 Animated ,
99 Dimensions ,
10- StatusBar ,
1110 Alert ,
1211 Platform ,
1312 ScrollView ,
1413} from "react-native" ;
14+ import { useSafeAreaInsets } from 'react-native-safe-area-context' ;
15+ import { StatusBar } from 'expo-status-bar' ;
1516import Svg , { Path , Defs , RadialGradient , Stop } from "react-native-svg" ;
1617import { Ionicons } from "@expo/vector-icons" ;
1718import { useVoiceChat , ActiveTool } from '../../hooks/useVoiceChat' ;
@@ -224,6 +225,7 @@ const VoiceChatModal: React.FC<VoiceChatModalProps> = ({
224225 onClose,
225226 onOpenCalendar,
226227} ) => {
228+ const insets = useSafeAreaInsets ( ) ;
227229 const {
228230 state,
229231 error,
@@ -383,7 +385,7 @@ const VoiceChatModal: React.FC<VoiceChatModalProps> = ({
383385 statusBarTranslucent = { true }
384386 onRequestClose = { handleClose }
385387 >
386- < StatusBar barStyle = "dark-content" backgroundColor = "#FFFFFF " />
388+ < StatusBar style = "dark" />
387389
388390 < Animated . View
389391 style = { [
@@ -395,7 +397,7 @@ const VoiceChatModal: React.FC<VoiceChatModalProps> = ({
395397 ] }
396398 >
397399 { /* Header */ }
398- < View style = { styles . header } >
400+ < View style = { [ styles . header , { paddingTop : insets . top + 16 } ] } >
399401 { isConnected ? (
400402 < View style = { styles . liveIndicator } >
401403 < Animated . View style = { [ styles . liveDot , { opacity : liveDotOpacity } ] } />
@@ -542,7 +544,7 @@ const styles = StyleSheet.create({
542544
543545 // Header
544546 header : {
545- paddingTop : StatusBar . currentHeight ? StatusBar . currentHeight + 16 : 52 ,
547+ paddingTop : 52 ,
546548 paddingHorizontal : 20 ,
547549 paddingBottom : 14 ,
548550 flexDirection : "row" ,
0 commit comments