-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
27 lines (25 loc) · 817 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-native-gesture-handler";
import { useEffect } from "react";
import { NavigationContainer } from "@react-navigation/native";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { StatusBar } from "expo-status-bar";
import * as Location from "expo-location";
import { LocationContextProvider } from "@/context/LocationContext";
import DrawerRoute from "@/routes/drawer.route";
export default function App() {
useEffect(() => {
(async () => {
await Location.requestForegroundPermissionsAsync();
})();
}, []);
return (
<LocationContextProvider>
<SafeAreaProvider>
<NavigationContainer>
<StatusBar style="light" />
<DrawerRoute />
</NavigationContainer>
</SafeAreaProvider>
</LocationContextProvider>
);
}