Skip to content
Snippets Groups Projects
Commit e55a1888 authored by Julia Friesel's avatar Julia Friesel
Browse files

Remove header and add color

parent 5136b9f8
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,8 @@ import Chart from './components/chart/chart'
import Settings from './components/settings'
import Stats from './components/stats'
import styles from './styles'
// this is until react native fixes this bugg, see
// https://github.com/facebook/react-native/issues/18868#issuecomment-382671739
import { YellowBox } from 'react-native'
......@@ -14,8 +16,8 @@ YellowBox.ignoreWarnings(['Warning: isMounted(...) is deprecated'])
const routes = {
Home: { screen: Home },
Calendar: createStackNavigator({Calendar, CycleDay}),
Chart: createStackNavigator({Chart, CycleDay}),
Calendar: createStackNavigator({Calendar, CycleDay}, {headerMode: 'none'}),
Chart: createStackNavigator({Chart, CycleDay}, {headerMode: 'none'}),
Settings: { screen: Settings },
Stats: { screen: Stats}
}
......@@ -23,7 +25,10 @@ const routes = {
const config = {
labeled: true,
shifting: false,
backBehavior: 'none'
tabBarOptions: {
style: {backgroundColor: '#ff7e5f'},
labelStyle: {fontSize: 15, color: 'white'}
},
}
export default createBottomTabNavigator(routes, config)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment