-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
37 lines (34 loc) · 881 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
29
30
31
32
33
34
35
36
37
import * as React from "react";
import { SafeAreaView, StyleSheet, StatusBar, Dimensions, View } from "react-native";
import { Provider } from "react-redux";
import { createStore } from "redux";
import rootReducer from "./Redux/Reducers";
import Search from "./Containers/Search";
import Results from "./Containers/Results";
import theme from "./theme";
import moment from "moment";
const store = createStore(rootReducer);
const initialLayout = { width: Dimensions.get("window").width };
const App: () => React$Node = () => {
return (
<>
<Provider store={store}>
<StatusBar barStyle="dark-content" />
<SafeAreaView style={styles.body}>
<Search />
<Results />
</SafeAreaView>
</Provider>
</>
);
};
const styles = StyleSheet.create({
body: {
backgroundColor: theme.background,
height: "100%"
},
tab: {
flex: 1
}
});
export default App;