-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
27 lines (25 loc) · 967 Bytes
/
App.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
import React from 'react'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import { SafeAreaProvider } from 'react-native-safe-area-context'
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet'
import { NavigationContainer } from '@react-navigation/native'
import { BackgroundTimerProvider } from '@/context/background-timer-provider.context'
import RootStack from '@/navigators/stack/root-stack'
import { AppStyles } from '@/styles'
import { navigationRef } from '@/utils/holder'
const App = () => {
return (
<SafeAreaProvider>
<BackgroundTimerProvider>
<GestureHandlerRootView style={[AppStyles.fill]}>
<BottomSheetModalProvider>
<NavigationContainer ref={navigationRef}>
<RootStack />
</NavigationContainer>
</BottomSheetModalProvider>
</GestureHandlerRootView>
</BackgroundTimerProvider>
</SafeAreaProvider>
)
}
export default App