Skip to content

Spacing between NavigationBar elements on Android #573

Answered by grahammendick
alexstanbury asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, nice to hear from you. The NavigationBar renders to the native Toolbar on Android so I think the spacing matches the material design specs. I'm not manually setting any spacing. Could you compare it to some native Android apps on your phone, like WhatsApp or Twitter, and see if there's a difference in spacing?

I'm guessing your branding is a TitleBar. I use something like the following to center the title on the zoom sample

<NavigationBar>
  <TitleBar style={{flex: 1, flexDirection: 'row', alignItems: 'center'}}>
     <Branding style={{width: 200}}>
  </TitleBar>
</NavigationBar>

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alexstanbury
Comment options

Answer selected by alexstanbury
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants