-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
48 lines (39 loc) · 1.16 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
import React, { Component } from "react";
// Redux
import { Provider } from "react-redux";
import { configureStore } from "./src/redux/store/configureStore";
const store = configureStore();
// Firebase
import "./src/config/firebaseApp";
// React Navigation
import AppNavigator from "./src/react-navigation/AppNavigator";
// Utilities
import { Toast } from "react-native-redux-toast";
// Apollo-Graphql
import { ApolloProvider } from "react-apollo";
import NavigationService from "./src/react-navigation/NavigationService";
import MyProvider from "./src/context/MyProvider";
import { client } from "./apollo";
class App extends Component {
constructor(props) {
super(props);
console.ignoredYellowBox = ["Setting a timer"];
}
render() {
return (
<ApolloProvider client={client}>
<Provider store={store}>
<MyProvider>
<AppNavigator
ref={navigatorRef => {
NavigationService.setTopLevelNavigator(navigatorRef);
}}
/>
<Toast messageStyle={{ color: "white" }} />
</MyProvider>
</Provider>
</ApolloProvider>
);
}
}
export default App;