Skip to content
Source
Sign inSign up
TanStack/db
Open History to see the last commit

_layout.tsx

26 lines753 Bytes

1// Must be first import to polyfill crypto before anything else loads
2import '../src/polyfills'
3​
4import { Stack } from 'expo-router'
5import { QueryClientProvider } from '@tanstack/react-query'
6import { SafeAreaProvider } from 'react-native-safe-area-context'
7import { StatusBar } from 'expo-status-bar'
8import { queryClient } from '../src/utils/queryClient'
9​
10export default function RootLayout() {
11 return (
12 <SafeAreaProvider>
13 <QueryClientProvider client={queryClient}>
14 <StatusBar style="auto" />
15 <Stack>
16 <Stack.Screen
17 name="index"
18 options={{
19 title: `Offline Transactions`,
20 }}
21 />
22 </Stack>
23 </QueryClientProvider>
24 </SafeAreaProvider>
25 )