We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b80354d + 1a36141 commit f5a92b6Copy full SHA for f5a92b6
components/NavButton.js
@@ -17,11 +17,12 @@ var NavButton = React.createClass({
17
},
18
19
render() {
20
- var backButton;
+ var backButton,
21
+ BackButton;
22
23
if (this.props.backButtonComponent) {
- var BackButton = this.props.backButtonComponent;
24
- backButton = <View><BackButton /></View>
+ BackButton = this.props.backButtonComponent;
25
+ backButton = <View><BackButton/></View>
26
} else {
27
backButton = <Text style={styles.navbarText}>Back</Text>
28
}
@@ -30,7 +31,7 @@ var NavButton = React.createClass({
30
31
<TouchableHighlight onPress={this.onPress} underlayColor="transparent">
32
{backButton}
33
</TouchableHighlight>
- )
34
+ );
35
36
});
37
0 commit comments