-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
84 lines (79 loc) · 1.62 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
import React, { useEffect, Component } from "react";
import { Provider } from "react-redux";
import { PersistGate } from "redux-persist/integration/react";
import { store, persistor } from "@modules";
import AppContainer from "@navigations";
import configs from "@constants/configs";
import i18n from "@utils/i18n";
i18n.setI18nConfig();
console.disableYellowBox = true;
global.homeUrl = {
agentId: undefined,
address: undefined,
mlsNumber: undefined,
listingId: undefined
}
global.listings = [];
global.details = [];
global.zoom = 10;
global.region = {
latitude: configs.latitude,
longitude: configs.longitude,
latitudeDelta: configs.latitudeDelta,
longitudeDelta: configs.longitudeDelta
};
global.location = null;
global.coordinates = [];
global.description = '';
global.badge = 0;
global.filters = {
type: 'Sale',
lastStatus: null,
propertyType: {
allTypes: false,
condoApartment: false,
condoTown: false,
detached: false,
duplex: false,
freeholdTown: false,
land: false,
multiFamily: false,
semiDetached: false,
},
price: {
minPrice: 0,
maxPrice: 5000000,
},
daysOnMarket: 0,
soldInLast: 180,
rooms: {
bed: 0,
bath: 0,
garage: 0,
parking: 0,
},
size: {
minSize: 0,
maxSize: 5000,
},
age: {
minAge: 0,
maxAge: 100,
},
condo: {
minCondo: 0,
maxCondo: 5000
}
};
global.marker = false;
export default class App extends Component {
render() {
return (
<Provider store={store}>
<PersistGate loading={null} persistor={persistor}>
<AppContainer />
</PersistGate>
</Provider>
);
}
}