Skip to content

Commit

Permalink
Default left button size unless size is overwritten (aksonov#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyhazelwood authored and aksonov committed Jun 15, 2016
1 parent f818f19 commit 1d74edb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NavBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ class NavBar extends React.Component {
const style = [styles.leftButton, self.props.leftButtonStyle, state.leftButtonStyle];
const textStyle = [styles.barLeftButtonText, self.props.leftButtonTextStyle,
state.leftButtonTextStyle];
const leftButtonStyle = [styles.defaultImageStyle, state.leftButtonIconStyle];

if (state.leftButton) {
let Button = state.leftButton;
Expand Down Expand Up @@ -350,7 +351,7 @@ class NavBar extends React.Component {
menuIcon = (
<Image
source={buttonImage}
style={state.leftButtonIconStyle || styles.defaultImageStyle}
style={leftButtonStyle}
/>
);
}
Expand Down

0 comments on commit 1d74edb

Please sign in to comment.