Skip to content

Commit

Permalink
Merge pull request #739 from laurentnguyen42/master
Browse files Browse the repository at this point in the history
Add prop to override the tabBar shadow style
  • Loading branch information
joenoon committed May 26, 2016
2 parents 74c3786 + 1773a35 commit b6569ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Scene.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export default class extends React.Component {

static propTypes = {
tabBarStyle: View.propTypes.style,
tabBarShadowStyle: View.propTypes.style,
tabSceneStyle: View.propTypes.style,
tabStyle: View.propTypes.style,
tabTitleStyle: Text.propTypes.style,
Expand Down
2 changes: 2 additions & 0 deletions src/TabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class TabBar extends Component {
tabIcon: PropTypes.any,
onNavigate: PropTypes.func,
tabBarStyle: View.propTypes.style,
tabBarShadowStyle: View.propTypes.style,
tabSceneStyle: View.propTypes.style,
};

Expand Down Expand Up @@ -42,6 +43,7 @@ class TabBar extends Component {
>
<TabNavigator
tabBarStyle={[this.props.tabBarStyle, tabBarStyle]}
tabBarShadowStyle={this.props.tabBarShadowStyle}
sceneStyle={[{ paddingBottom: 0 }, this.props.tabSceneStyle]}
>
{state.children.map(el => {
Expand Down

0 comments on commit b6569ba

Please sign in to comment.