Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9d1034f

Browse files
Use same logic to show corners on route indexes > 0
If we don't show the right corner when we default to show the left corner, we end up with a [ flex 1 | flex 6 ] setup where the title is centered "off-center" because of the uneven flex total of 7. Forcing an empty default right corner gets us back to [ flex 1 | flex 6 | flex 1 ] by default which gives a truly centered nav title
1 parent 763f2c6 commit 9d1034f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎components/NavBarContent.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class NavBarContent extends React.Component {
205205
);
206206
}
207207

208-
if (Platform.OS === 'ios' || this.props.route.rightCorner || this.props.rightCorner) {
208+
if (Platform.OS === 'ios' || this.props.route.rightCorner || this.props.route.index>0) {
209209
rightCorner = (
210210
<View style={[styles.corner, styles.alignRight]}>
211211
{rightCornerContent}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /