Skip to content

Commit

Permalink
Add onPress support
Browse files Browse the repository at this point in the history
Very simple update to allow onPress on each tab item in footer tab
  • Loading branch information
shishircc authored Sep 20, 2016
1 parent eb2e79a commit 47a5ae7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Components/Widgets/FooterTab.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class Footer extends NativeBaseComponent {
capitalize={false}
style={[this.getInitialStyle().btnStyle, {backgroundColor: (child.props.active) ? this.getTheme().tabActiveBgColor : undefined}]}
textStyle={(child.props.active) ? this.getInitialStyle().btnActiveTextStyle : this.getInitialStyle().btnTextStyle}
key={i}>
key={i} onPress={child.props.onPress}>
{child.props.children}
<Icon
style={{color: (child.props.active) ? this.getTheme().tabBarActiveTextColor : this.getTheme().tabBarTextColor}}
Expand All @@ -107,7 +107,7 @@ export default class Footer extends NativeBaseComponent {
<Button transparent vertical
capitalize={false}
style={[this.getInitialStyle().btnStyle, {backgroundColor: (child.props.active) ? this.getTheme().tabActiveBgColor : undefined}]}
key={i}>
key={i} onPress={child.props.onPress}>
<Icon
style={{color: (child.props.active) ? this.getTheme().tabBarActiveTextColor : this.getTheme().tabBarTextColor,
fontSize: 28}}
Expand Down

0 comments on commit 47a5ae7

Please sign in to comment.