Skip to content

Commit 8dd87a1

Browse files
committed
Merge pull request #105 from charpeni/fix-98
Fix PR #98
2 parents a2a0035 + 58daad0 commit 8dd87a1

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)