diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index e22451c..df203ac 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -9,6 +9,7 @@ + @@ -17,11 +18,10 @@ - + - diff --git a/app/+not-found.tsx b/app/+not-found.tsx index 068a869..93bf37e 100644 --- a/app/+not-found.tsx +++ b/app/+not-found.tsx @@ -1,5 +1,6 @@ import { Stack } from 'expo-router'; import { StyleSheet } from 'react-native'; +import React from 'react'; import { Text, View } from '@/components/shared/Themed'; diff --git a/components/useCases/timer/business/useAudio.ts b/components/useCases/timer/business/useAudio.ts index d2a0033..bf413b5 100644 --- a/components/useCases/timer/business/useAudio.ts +++ b/components/useCases/timer/business/useAudio.ts @@ -9,7 +9,7 @@ export function useAudio(soundFile: any, soundEnabled: boolean) { const configureAudio = async () => { await Audio.setAudioModeAsync({ allowsRecordingIOS: false, - staysActiveInBackground: false, + staysActiveInBackground: true, playsInSilentModeIOS: true, shouldDuckAndroid: true, playThroughEarpieceAndroid: false, diff --git a/components/useCases/timer/view/FinishContent.tsx b/components/useCases/timer/view/FinishContent.tsx index 51ec026..08d8959 100644 --- a/components/useCases/timer/view/FinishContent.tsx +++ b/components/useCases/timer/view/FinishContent.tsx @@ -1,25 +1,22 @@ +import React from 'react'; import { Text, View } from '@/components/shared/Themed'; import styled from '@emotion/native'; -import { useNavigation } from 'expo-router'; -import { NativeStackNavigationProp } from 'react-native-screens/lib/typescript/native-stack/types'; +import { useRouter } from 'expo-router'; import Button from '@/components/shared/Button'; import { HorizontalSpacer, VerticalSpacer } from '@/components/shared/Spacers'; -import { RootStackParamList } from '@/app/RootStackParamList'; import { i18n } from '@/app/i18n/i18n'; type FinishContentProps = { handleStart: () => void; }; -type NavigationProp = NativeStackNavigationProp; - const t = i18n.scoped('timer.finishContent'); export default function FinishContent({ handleStart }: FinishContentProps) { - const navigation = useNavigation(); + const router = useRouter(); return ( <> @@ -32,7 +29,7 @@ export default function FinishContent({ -