Skip to content

Commit

Permalink
nomadcoders#18.0 Tab Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
serranoarevalo committed Jun 25, 2019
1 parent f8559bf commit 9b157f6
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
2 changes: 1 addition & 1 deletion navigation/MainNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { stackStyles } from "./config";

const MainNavigation = createStackNavigator(
{
TabNavigation,
PhotoNavigation,
TabNavigation,
MessageNavigation
},
{
Expand Down
38 changes: 34 additions & 4 deletions navigation/PhotoNavigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,50 @@ import SelectPhoto from "../screens/Photo/SelectPhoto";
import TakePhoto from "../screens/Photo/TakePhoto";
import UploadPhoto from "../screens/Photo/UploadPhoto";
import { stackStyles } from "./config";
import styles from "../styles";

const PhotoTabs = createMaterialTopTabNavigator(
{
SelectPhoto,
TakePhoto
Select: {
screen: SelectPhoto,
navigationOptions: {
tabBarLabel: "Select"
}
},
Take: {
screen: TakePhoto,
navigationOptions: {
tabBarLabel: "Take"
}
}
},
{
tabBarPosition: "bottom"
tabBarPosition: "bottom",
tabBarOptions: {
indicatorStyle: {
backgroundColor: styles.blackColor,
marginBottom: 20
},
labelStyle: {
color: styles.blackColor,
fontWeight: "600"
},
style: {
paddingBottom: 20,
...stackStyles
}
}
}
);

export default createStackNavigator(
{
PhotoTabs,
Tabs: {
screen: PhotoTabs,
navigationOptions: {
header: null
}
},
UploadPhoto
},
{
Expand Down

0 comments on commit 9b157f6

Please sign in to comment.