From b81c63a2d38a4f996d491a48b9a6dc1c7f0378e9 Mon Sep 17 00:00:00 2001 From: byGalax Date: Thu, 14 May 2026 06:12:20 +0200 Subject: [PATCH] feat(mobile): mount CallProvider + global IncomingCallModal --- apps/mobile/app/_layout.tsx | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/apps/mobile/app/_layout.tsx b/apps/mobile/app/_layout.tsx index 5406583..f4da9cc 100644 --- a/apps/mobile/app/_layout.tsx +++ b/apps/mobile/app/_layout.tsx @@ -5,13 +5,11 @@ import { GestureHandlerRootView } from 'react-native-gesture-handler'; import { SafeAreaProvider } from 'react-native-safe-area-context'; import { ErrorBoundary } from '../components/ErrorBoundary'; +import { IncomingCallModal } from '../components/IncomingCallModal'; import { AuthProvider } from '../lib/authContext'; +import { CallProvider } from '../lib/callContext'; import { createLibsodiumBackend } from '../lib/cryptoBackend'; -// Register the crypto backend exactly once, before any code that calls -// crypto.getCryptoBackend(). Doing it at module load (not inside the -// component) avoids a race where a child component renders before the -// effect fires. crypto.setCryptoBackend(createLibsodiumBackend()); export default function RootLayout() { @@ -20,12 +18,15 @@ export default function RootLayout() { - - - - - - + + + + + + + + +