Skip to content

Commit

Permalink
resolved #24
Browse files Browse the repository at this point in the history
  • Loading branch information
wsdt committed May 22, 2019
1 parent e368b4a commit ac243de
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {BottomTabNavigatorConfig, createAppContainer} from "react-navigation"
import p from "../../../controllers/parseScss"
import {SwitchRouter} from "../../components/system/SwitchRouter/SwitchRouter"
import {DrawerNavigator} from "../../components/system/TabRouter/DrawerNavigator"
import * as styles from "../../components/system/TabRouter/TabBar.scss"
Expand All @@ -9,9 +10,9 @@ import {routesObj} from "./DashboardTabScreenRoutes"
const tabConf: BottomTabNavigatorConfig = {
initialRouteName: routesStr.NewsfeedStack.Home,
tabBarOptions: {
iconStyle: styles.tabIcon,
iconStyle: p(styles.tabIcon),
showIcon: true,
tabStyle: styles.tabBarStyle,
style: p(styles.tabBarStyle),
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import {NavigationRouteConfigMap} from "react-navigation"
import p from "../../../controllers/parseScss"
import * as styles from "../../components/system/TabRouter/TabBar.scss"
import {routesStr} from "./DashboardTabScreen.constants"
import {ChallengeTabRoutes} from "./tab_challenges/ChallengeTabRoutes"
import {NewsfeedTabRoutes} from "./tab_newsfeed/NewsfeedTabRoutes"
import {ProfileTabRoutes} from "./tab_profile/ProfileTabRoutes"
import {ChallengeTab} from "./tab_challenges/ChallengeTab"
import {NewsfeedTab} from "./tab_newsfeed/NewsfeedTab"
import {ProfileTab} from "./tab_profile/ProfileTab"


export const routesObj: NavigationRouteConfigMap = {
Expand All @@ -17,7 +17,7 @@ export const routesObj: NavigationRouteConfigMap = {
),
tabBarLabel: "Challenges",
},
screen: ChallengeTabRoutes,
screen: ChallengeTab,
},
[routesStr.NewsfeedStack.Home]: {
navigationOptions: {
Expand All @@ -26,7 +26,7 @@ export const routesObj: NavigationRouteConfigMap = {
),
tabBarLabel: "Newsfeed",
},
screen: NewsfeedTabRoutes,
screen: NewsfeedTab,
},
[routesStr.ProfileStack.Home]: {
navigationOptions: {
Expand All @@ -35,6 +35,6 @@ export const routesObj: NavigationRouteConfigMap = {
),
tabBarLabel: "Profile",
},
screen: ProfileTabRoutes,
screen: ProfileTab,
},
}

0 comments on commit ac243de

Please sign in to comment.