-
Notifications
You must be signed in to change notification settings - Fork 7
/
App.js
28 lines (25 loc) · 879 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
import React from "react";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
import { store, persistor } from "./src/store";
import { AppNavigator } from "./src/navigation";
import { Loading } from "./src/components/Loading";
import { firebaseConfig } from "./src/config";
import * as firebase from "firebase";
/**
|--------------------------------------------------
| Main App with Redux provider, redux-persist PeristGate, persisitor and Firebase 🔥 Initialization
|--------------------------------------------------
*/
firebase.initializeApp(firebaseConfig);
export default class App extends React.Component {
render() {
return (
<Provider store={store}>
<PersistGate loading={<Loading />} persistor={persistor}>
<AppNavigator />
</PersistGate>
</Provider>
);
}
}