-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
34 lines (30 loc) · 940 Bytes
/
App.js
File metadata and controls
34 lines (30 loc) · 940 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
// In App.js in a new project
import * as React from "react";
import MainStackView from "./navigators/MainStack";
import { SafeAreaProvider } from "react-native-safe-area-context";
import {
QueryClient,
QueryClientProvider,
useQuery,
} from "@tanstack/react-query";
import { Provider as PaperProvider } from "react-native-paper";
import Toast from "react-native-toast-message";
import { CurrentLocationProvider } from "./hooks/useCurrentLocation";
import { StatusBar } from "expo-status-bar";
const queryClient = new QueryClient();
function App() {
return (
<PaperProvider>
<QueryClientProvider client={queryClient}>
<SafeAreaProvider>
{/* <CurrentLocationProvider> */}
{/* <StatusBar /> */}
<MainStackView />
<Toast />
{/* </CurrentLocationProvider> */}
</SafeAreaProvider>
</QueryClientProvider>
</PaperProvider>
);
}
export default App;