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