Skip to content

Commit

Permalink
closes #224
Browse files Browse the repository at this point in the history
  • Loading branch information
Sankhadeep committed Oct 18, 2016
1 parent 9bdd1c1 commit 57bac47
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Components/Widgets/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ export default class Header extends NativeBaseComponent {
return {
navbar: {
backgroundColor: this.getTheme().toolbarDefaultBg,
justifyContent: (!Array.isArray(this.props.children)) ? 'center' : 'space-between',
justifyContent: (!Array.isArray(this.props.children) && Platform.OS == 'ios') ? 'center' : 'space-between',
flexDirection: 'row',
alignItems: 'center',
paddingLeft: (Platform.OS == 'android') ? 30 : undefined,
paddingHorizontal: 15,
paddingTop: (Platform.OS === 'ios' ) ? 15 : 0,
shadowColor: '#000',
Expand Down Expand Up @@ -110,7 +111,7 @@ export default class Header extends NativeBaseComponent {
{[title[0],subtitle[0]]}
</View>)
newChildren.push(<View key='title2' style={{flex: 3, alignSelf: 'stretch'}} />)
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginRight: -14}}>
newChildren.push(<View key='btn1' style={{alignItems: 'center', justifyContent: 'flex-start', flexDirection: 'row', marginLeft: -14}}>
{React.cloneElement(buttons[0], {color: this.getTheme().iosToolbarBtnColor, style: this.getInitialStyle().toolbarButton})}
</View>)
}
Expand Down

0 comments on commit 57bac47

Please sign in to comment.