Large Header with Custom Component Getting Cut Off
See original GitHub issueI’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:
- Created 3 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Here is an example of what I’m referring to.
@WoLewicki Thanks for investigating this. We decided to use the non-native stack navigator to get the features we need. This can be closed.