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 a2a0035 + 58daad0 commit 8dd87a1Copy full SHA for 8dd87a1
components/NavBarContent.js
@@ -173,11 +173,11 @@ class NavBarContent extends React.Component {
173
);
174
} else if (this.props.route.index > 0) {
175
leftCornerContent = (
176
- <NavButton onPress={this.goBack } backButtonComponent={ () => {
177
- const BackButton = this.props.backButtonComponent;
178
- const backButtonProps = this.props.route.backButtonProps || {};
179
- return <BackButton {...backButtonProps} />;
180
- }} />
+ <NavButton
+ onPress={this.goBack}
+ backButtonComponent={this.props.backButtonComponent}
+ {...this.props.route.backButtonProps}
+ />
181
182
}
183
0 commit comments