Skip to content

Commit

Permalink
Merge pull request #360 from Proximaio/master
Browse files Browse the repository at this point in the history
Support deeply nested scenes setting TabBar properties
  • Loading branch information
aksonov committed Mar 21, 2016
2 parents 814a3b1 + a61f7df commit daeb7a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TabBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export default class extends Component {
render(){
const state = this.props.navigationState;
const selected = state.children[state.index];
while (selected.hasOwnProperty("children")) {
selected = selected.children[selected.index]
}
const hideTabBar = state.hideTabBar || selected.hideTabBar;
return <View style={{flex:1}}>
<NavigationView
Expand Down

0 comments on commit daeb7a9

Please sign in to comment.