-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
35 lines (30 loc) · 904 Bytes
/
App.js
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
import React from "react";
import { NavigationContainer } from "@react-navigation/native";
import {LogBox} from 'react-native'
import navigationTheme from "./app/navigation/navigationTheme";
import AuthNavigator from "./app/navigation/AuthNavigator";
import * as firebase from 'firebase';
import {firebaseConfig} from "./config"
// Optionally import the services that you want to use
import "firebase/auth";
import "firebase/database";
import "firebase/firestore";
import "firebase/functions";
import "firebase/storage";
if (!firebase.apps.length) {
try {
firebase.initializeApp(firebaseConfig)
} catch (err) {
console.log(err)
}
}
// firebase.initializeApp(firebaseConfig);
// firebase.analytics();
LogBox.ignoreAllLogs(true)
export default function App() {
return (
<NavigationContainer theme={navigationTheme}>
<AuthNavigator />
</NavigationContainer>
);
}