-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
71 lines (58 loc) · 2.16 KB
/
Copy pathApp.js
File metadata and controls
71 lines (58 loc) · 2.16 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import "react-native-gesture-handler";
import { StatusBar as ExpoStatusBar } from "expo-status-bar";
import React, { useEffect, useState } from "react";
import { ThemeProvider } from "styled-components/native";
import {
useFonts as useOswald,
Oswald_400Regular,
} from "@expo-google-fonts/oswald";
import { useFonts as useLato, Lato_400Regular } from "@expo-google-fonts/lato";
import { theme } from "./src/infrastructure/theme";
import { Navigation } from "./src/infrastructure/navigation";
import { RestaurantsContextProvider } from "./src/services/restaurants/restaurants.context";
import { LocationContextProvider } from "./src/services/location/location.context";
import { FavouritesContextProvider } from "./src/services/favourites/favourites.context";
import { AuthContextProvider } from "./src/services/authentications/authentication.context";
import { initializeApp } from "firebase/app";
export default function App() {
const [isAuthenticate, setIsAuthenticate] = useState(false);
const [oswaldLoaded] = useOswald({
Oswald_400Regular,
});
const [latoLoaded] = useLato({
Lato_400Regular,
});
if (!oswaldLoaded || !latoLoaded) {
return null;
}
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyAKVSObLn-pq5UU2bNuN-nVYk-BAq-Cac4",
authDomain: "clone-6d4d2.firebaseapp.com",
databaseURL: "https://clone-6d4d2.firebaseio.com",
projectId: "clone-6d4d2",
storageBucket: "clone-6d4d2.appspot.com",
messagingSenderId: "350191896182",
appId: "1:350191896182:web:6bc10294f12227fbb9c157",
measurementId: "G-XBETG966YZ",
};
initializeApp(firebaseConfig);
// Initialize Authentication
// initializeApp(firebaseConfig);
// useEffect(() => {
// CreateAnAcount();
// }, []);
return (
<>
<ThemeProvider theme={theme}>
<AuthContextProvider>
<Navigation />
</AuthContextProvider>
</ThemeProvider>
<ExpoStatusBar style="auto" />
</>
);
}