-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
36 lines (31 loc) · 961 Bytes
/
App.tsx
File metadata and controls
36 lines (31 loc) · 961 Bytes
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
import { useEffect } from 'react'
import { StatusBar } from 'expo-status-bar'
import { StyleSheet } from 'react-native'
import { SafeAreaView } from 'react-native-safe-area-context'
import { BottomSheetModalProvider } from '@gorhom/bottom-sheet'
import { GestureHandlerRootView } from 'react-native-gesture-handler'
import Navigation from 'navigation'
import LanguageStore from 'stores/LanguageStore'
export default function App() {
useEffect(() => {
const checkIfFirstTimeLogin = async () => {
await LanguageStore.getLocale()
}
checkIfFirstTimeLogin()
}, [])
return (
<GestureHandlerRootView style={styles.container}>
<SafeAreaView style={styles.container}>
<BottomSheetModalProvider>
<StatusBar style="auto" />
<Navigation />
</BottomSheetModalProvider>
</SafeAreaView>
</GestureHandlerRootView>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
},
})