-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathApp.js
29 lines (27 loc) · 888 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
import React from 'react';
import { View, StyleSheet } from 'react-native';
import { createAppContainer, createStackNavigator, createBottomTabNavigator, createSwitchNavigator } from "react-navigation";
import { createStore } from "redux";
import reducer from "./reducers";
import middleware from "./middleware";
import { Provider } from "react-redux";
import CustomStatusBar from "./components/CustomStatusBar";
import Router from "./Router";
import { PURPLE } from "./styles/shared";
export default class App extends React.Component {
render() {
return (
<Provider store={createStore(reducer, middleware)}>
<View style={styles.appContainer}>
<CustomStatusBar backgroundColor={PURPLE} barStyle="light-content" />
<Router />
</View>
</Provider>
);
}
}
const styles = StyleSheet.create({
appContainer: {
flex: 1,
},
});