Skip to content

Commit 58daad0

Browse files
committed
Fix PR #98
1 parent 5f0f80f commit 58daad0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/NavBarContent.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ class NavBarContent extends React.Component {
173173
);
174174
} else if (this.props.route.index > 0) {
175175
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-
}} />
176+
<NavButton
177+
onPress={this.goBack}
178+
backButtonComponent={this.props.backButtonComponent}
179+
{...this.props.route.backButtonProps}
180+
/>
181181
);
182182
}
183183

0 commit comments

Comments
 (0)