-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path_layout.tsx
44 lines (38 loc) · 1.25 KB
/
_layout.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import 'fast-text-encoding'
import { BackgroundLockProvider, NoInternetToastProvider, Provider, useTransparentNavigationBar } from '@package/app'
import { SecureUnlockProvider } from '@package/secure-store/secureUnlock'
import { DefaultTheme, ThemeProvider } from '@react-navigation/native'
import { Slot } from 'expo-router'
import * as SplashScreen from 'expo-splash-screen'
import { useCheckIncompleteDownload } from '@easypid/llm'
import tamaguiConfig from '../../tamagui.config'
void SplashScreen.preventAutoHideAsync()
export const unstable_settings = {
// Ensure any route can link back to `/`
initialRouteName: '/(app)/index',
}
export default function RootLayout() {
useTransparentNavigationBar()
useCheckIncompleteDownload()
return (
<Provider config={tamaguiConfig}>
<SecureUnlockProvider>
<ThemeProvider
value={{
...DefaultTheme,
colors: {
...DefaultTheme.colors,
background: 'white',
},
}}
>
<BackgroundLockProvider>
<NoInternetToastProvider>
<Slot />
</NoInternetToastProvider>
</BackgroundLockProvider>
</ThemeProvider>
</SecureUnlockProvider>
</Provider>
)
}