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 d7161fc commit 87af4eaCopy full SHA for 87af4ea
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