-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
73 lines (64 loc) · 1.74 KB
/
App.js
File metadata and controls
73 lines (64 loc) · 1.74 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
72
73
import React from "react";
import ReduxThunk from "redux-thunk";
import MainNav from "./helpers/navigation";
import driverReducers from "./helpers/driver-reducers";
import vehicleReducers from "./helpers/vehicle-reducers";
import { applyMiddleware, combineReducers, createStore } from "redux";
import { Provider } from "react-redux";
import {
useFonts,
WorkSans_100Thin,
WorkSans_200ExtraLight,
WorkSans_300Light,
WorkSans_400Regular,
WorkSans_500Medium,
WorkSans_600SemiBold,
WorkSans_700Bold,
WorkSans_800ExtraBold,
WorkSans_900Black,
WorkSans_100Thin_Italic,
WorkSans_200ExtraLight_Italic,
WorkSans_300Light_Italic,
WorkSans_400Regular_Italic,
WorkSans_500Medium_Italic,
WorkSans_600SemiBold_Italic,
WorkSans_700Bold_Italic,
WorkSans_800ExtraBold_Italic,
WorkSans_900Black_Italic,
} from "@expo-google-fonts/work-sans";
import Loading from "./components/Loading";
const rootReducer = combineReducers({
driver: driverReducers,
vehicle: vehicleReducers
});
const store = createStore(rootReducer, applyMiddleware(ReduxThunk));
export default function App() {
let [fontsLoaded] = useFonts({
WorkSans_100Thin,
WorkSans_200ExtraLight,
WorkSans_300Light,
WorkSans_400Regular,
WorkSans_500Medium,
WorkSans_600SemiBold,
WorkSans_700Bold,
WorkSans_800ExtraBold,
WorkSans_900Black,
WorkSans_100Thin_Italic,
WorkSans_200ExtraLight_Italic,
WorkSans_300Light_Italic,
WorkSans_400Regular_Italic,
WorkSans_500Medium_Italic,
WorkSans_600SemiBold_Italic,
WorkSans_700Bold_Italic,
WorkSans_800ExtraBold_Italic,
WorkSans_900Black_Italic,
});
if (!fontsLoaded) {
return <Loading />
}
return (
<Provider store={store}>
<MainNav />
</Provider>
);
}