Remove header and add color

This commit is contained in:
Julia Friesel
2018-08-16 16:33:55 +02:00
parent 5136b9f8e6
commit e55a18885b
+8 -3
View File
@@ -7,6 +7,8 @@ import Chart from './components/chart/chart'
import Settings from './components/settings' import Settings from './components/settings'
import Stats from './components/stats' import Stats from './components/stats'
import styles from './styles'
// this is until react native fixes this bugg, see // this is until react native fixes this bugg, see
// https://github.com/facebook/react-native/issues/18868#issuecomment-382671739 // https://github.com/facebook/react-native/issues/18868#issuecomment-382671739
import { YellowBox } from 'react-native' import { YellowBox } from 'react-native'
@@ -14,8 +16,8 @@ YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated'])
const routes = { const routes = {
Home: { screen: Home }, Home: { screen: Home },
Calendar: createStackNavigator({Calendar, CycleDay}), Calendar: createStackNavigator({Calendar, CycleDay}, {headerMode: 'none'}),
Chart: createStackNavigator({Chart, CycleDay}), Chart: createStackNavigator({Chart, CycleDay}, {headerMode: 'none'}),
Settings: { screen: Settings }, Settings: { screen: Settings },
Stats: { screen: Stats} Stats: { screen: Stats}
} }
@@ -23,7 +25,10 @@ const routes = {
const config = { const config = {
labeled: true, labeled: true,
shifting: false, shifting: false,
backBehavior: 'none' tabBarOptions: {
style: {backgroundColor: '#ff7e5f'},
labelStyle: {fontSize: 15, color: 'white'}
},
} }
export default createBottomTabNavigator(routes, config) export default createBottomTabNavigator(routes, config)