-
Notifications
You must be signed in to change notification settings - Fork 17
/
App.js
42 lines (40 loc) · 1.03 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
import React from "react";
import { StyleSheet, StatusBar } from "react-native";
import { Provider } from "react-redux";
import { TabNavigator, SafeAreaView } from "react-navigation";
import store from "./store";
import MonthList from "./screens/MonthList";
import Month from "./screens/Month";
import Form from "./screens/Form";
export default class App extends React.PureComponent {
render() {
const MainNavigator = TabNavigator(
{
monthlist: { screen: MonthList },
form: { screen: Form },
month: { screen: Month }
},
{
navigationOptions: {
tabBarVisible: false
},
swipeEnabled: false,
tabBarPosition: "bottom",
lazy: true
}
);
return (
<Provider store={store}>
<SafeAreaView style={styles.container}>
<MainNavigator />
</SafeAreaView>
</Provider>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: StatusBar.currentHeight ? StatusBar.currentHeight : 0
}
});