/
App.js
55 lines (51 loc) · 1.33 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
import React, { Component } from 'react';
import { TabNavigator } from 'react-navigation';
import Appointments from './components/appointments/Appointments';
import Portfolio from './components/portfolio/Portfolio';
import Book from './components/portfolio/Book';
import Stats from './components/stats/Stats';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import rootReducer from './redux/reducers.js';
import { Font } from 'expo';
import styled, { css } from 'styled-components/native';
const AppWithNavigationState = TabNavigator(
{
Appointments: { screen: Appointments },
Portfolio: { screen: Portfolio },
Stats: { screen: Stats }
},
{
tabBarPosition: 'top',
tabBarOptions: {
activeBackgroundColor: 'white',
activeTintColor: '#444444',
inactiveTintColor: 'white',
labelStyle: {
fontSize: 20,
fontFamily: 'Helvetica',
padding: 15
},
style: {
backgroundColor: '#ababff',
height: 70
}
}
}
);
class App extends Component {
componentDidMount() {
Font.loadAsync({
Helvetica: require('./assets/Helvetica.ttf')
});
}
store = createStore(rootReducer);
render() {
return (
<Provider store={this.store}>
<AppWithNavigationState />
</Provider>
);
}
}
export default App;