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.
1 parent 5f0f80f commit 58daad0Copy full SHA for 58daad0
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