From 9d1034f93534b037378e5031d586e1c2fb28b03d Mon Sep 17 00:00:00 2001 From: Craig P Jolicoeur Date: Mon, 29 Feb 2016 15:30:43 -0500 Subject: [PATCH] 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 --- components/NavBarContent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/NavBarContent.js b/components/NavBarContent.js index 5c5e2b0..c0357c7 100644 --- a/components/NavBarContent.js +++ b/components/NavBarContent.js @@ -205,7 +205,7 @@ class NavBarContent extends React.Component { ); } - if (Platform.OS === 'ios' || this.props.route.rightCorner || this.props.rightCorner) { + if (Platform.OS === 'ios' || this.props.route.rightCorner || this.props.route.index > 0) { rightCorner = ( {rightCornerContent}