2

How can I increase the height of my topbar in React Native Navigation? In the styling docs, there is only an option for height in android, and this doesn't center the other things (title, buttons, etc.) in the topBar, only adding height to the bottom of the title. My current options are:

topBar: {
    visible: true,
    elevation: 0,
    height: 80, //Doesn't center items in topbar, only android
    title: {
       fontFamily: 'WorkSans',
       height: 80
    }
}
Adam.V
  • 779
  • 2
  • 9
  • 25
  • What exactly are you trying to accomplish? You wish to have a bigger nav bar height? If so why don't you hide the nav bar and create your own custom view? – mKane Jul 17 '19 at 00:37
  • How would I make my own view? I'm new to React Native so I was trying to stick with RNN defaults – Adam.V Jul 17 '19 at 17:59
  • 1
    This is just one suggestion. Just tell react navigation to not give you a header. Then create a custom view and use that as your header. – mKane Jul 18 '19 at 17:17

0 Answers0