-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.tsx
38 lines (35 loc) · 1009 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
28
29
30
31
32
33
34
35
36
37
38
import React from "react";
// Providers
import { Provider as PaperProvider } from "react-native-paper";
import { AuthProvider } from "./src/context/auth";
import { ParkingProvider } from "./src/context/parking";
import { SnackbarProvider } from "./src/context/snackbar";
// Constants
import { DefaultTheme as DefaultPaperTheme, Colors } from "react-native-paper";
// Components
import SplashScreenManager from "./src/SplashScreenManager";
// Services
import * as SplashScreen from "expo-splash-screen";
SplashScreen.preventAutoHideAsync();
const Theme = {
...DefaultPaperTheme,
colors: {
...DefaultPaperTheme.colors,
background: Colors.white,
primary: "#66778D",
accent: "#00B386",
},
};
export default function App() {
return (
<AuthProvider>
<ParkingProvider>
<PaperProvider theme={Theme}>
<SnackbarProvider>
<SplashScreenManager />
</SnackbarProvider>
</PaperProvider>
</ParkingProvider>
</AuthProvider>
);
}