Skip to content

Commit f5a92b6

Browse files
Merge pull request #36 from sethx/patch-8
Update NavButton.js
2 parents b80354d + 1a36141 commit f5a92b6

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/NavButton.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ var NavButton = React.createClass({
1717
},
1818

1919
render() {
20-
var backButton;
20+
var backButton,
21+
BackButton;
2122

2223
if (this.props.backButtonComponent) {
23-
var BackButton = this.props.backButtonComponent;
24-
backButton = <View><BackButton /></View>
24+
BackButton = this.props.backButtonComponent;
25+
backButton = <View><BackButton/></View>
2526
} else {
2627
backButton = <Text style={styles.navbarText}>Back</Text>
2728
}
@@ -30,7 +31,7 @@ var NavButton = React.createClass({
3031
<TouchableHighlight onPress={this.onPress} underlayColor="transparent">
3132
{backButton}
3233
</TouchableHighlight>
33-
)
34+
);
3435
}
3536
});
3637

0 commit comments

Comments
 (0)