question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Large Header with Custom Component Getting Cut Off

See original GitHub issue

I’m using createNativeStackNavigator() and providing my own headerCenter component that is taller than the default iOS header height. I’m trying to use headerLargeTitle so it fits. The problem is, my component won’t render any taller than the non-large height. It appears that the large header title is cutting it off, even though I’m making the title transparent. However, when I navigate, it shows the component correctly very briefly. It might be worth noting that in the non-native createStackNavigator() this works fine.

I am using the following options to get this effect:

{
  title: 'Feed',
  headerLargeTitle: true,
  headerTitleStyle: {
    color: 'transparent',
  },
  headerCenter: () => (
    <CallHeader
      displayName="Bob"
      trulyNumber="+13305551234"
    />
  ),
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
cmrigneycommented, Jun 5, 2020

Here is an example of what I’m referring to.

357CE0E0-110A-4FB0-8FAE-55F315DE924E-91494-0003A9249358E86F

1reaction
cmrigneycommented, Jul 13, 2020

@WoLewicki Thanks for investigating this. We decided to use the non-native stack navigator to get the features we need. This can be closed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-Native text gets vertically cut off for no reason
React-Native text gets vertically cut off for no reason · My first guess would be that it has to do with "flex" and...
Read more >
Headers getting cut off by menu bar on mobile/tablet views
Hi, please see: The headers seam to be too high up on mobile views, they are getting cut off: [image] Also, please check...
Read more >
Configuring the header bar - React Navigation
You can customize the header inside of the navigationOptions static property on your screen components. · The navigationOptions static property can be an...
Read more >
How do I fix the navigation drop down menu from being cut off ...
You should have some CSS code in your stylesheet that has set the header section css to overflow:hidden, remove that code.
Read more >
How to Create a Shrinking Sticky Header With Elementor
The biggest benefit of a shrinking header is that you get more space for your main content. It also puts some more emphasis...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found