-
Notifications
You must be signed in to change notification settings - Fork 1
/
App.js
50 lines (44 loc) · 1.33 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import { StatusBar } from "expo-status-bar";
import React from "react";
import AppNav from "./navigations/navigationContainer";
import colors from "./colors";
import { View } from "react-native";
import { AppLoading } from "expo";
import { store, rrfProps } from "./store/rootReducer";
import { isEmpty, isLoaded } from "react-redux-firebase";
import { Provider } from "react-redux";
import { Piedra_400Regular, useFonts } from "@expo-google-fonts/piedra";
import {
Spartan_400Regular,
Spartan_700Bold,
} from "@expo-google-fonts/spartan";
import { ReactReduxFirebaseProvider } from "react-redux-firebase";
import { Provider as ProviderPaper } from "react-native-paper";
import size from "./size";
import { decode, encode } from "base-64";
if (!global.btoa) {
global.btoa = encode;
}
if (!global.atob) {
global.atob = decode;
}
console.ignoredYellowBox = ["Warning:"];
export default function App() {
let [fontLoad] = useFonts({
Piedra: Piedra_400Regular,
Spartan: Spartan_400Regular,
SpartanBold: Spartan_700Bold,
});
if (!fontLoad) {
return <AppLoading />;
} else {
return (
<Provider store={store}>
<ReactReduxFirebaseProvider dispatch={store.dispatch} {...rrfProps}>
<StatusBar/>
<AppNav />
</ReactReduxFirebaseProvider>
</Provider>
);
}
}