Skip to content

Commit

Permalink
Merge pull request #801 from alextkd/master
Browse files Browse the repository at this point in the history
[tabs]: add custom selected item tab style
  • Loading branch information
aksonov committed Jun 9, 2016
2 parents 0a16782 + 9fb6155 commit 7daa57a
Show file tree
Hide file tree
Showing 2 changed files with 2 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,
tabBarSelectedItemStyle: View.propTypes.style,
tabBarShadowStyle: View.propTypes.style,
tabSceneStyle: View.propTypes.style,
tabStyle: View.propTypes.style,
Expand Down
1 change: 1 addition & 0 deletions src/TabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ class TabBar extends Component {
{!hideTabBar && state.children.filter(el => el.icon).length > 0 &&
<Tabs
style={[{ backgroundColor: 'white' }, state.tabBarStyle]}
selectedIconStyle={[{ backgroundColor: 'white' }, state.tabBarSelectedItemStyle]}
onSelect={this.onSelect} {...state}
selected={state.children[state.index].sceneKey}
>
Expand Down

0 comments on commit 7daa57a

Please sign in to comment.