-
-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How remove bottom border of header #6899
Comments
It looks like the prop connected with it is shadowOffset here (for iOS):
shadowOffset: { height: 0, width: 0 }
|
This is what worked for me:
EDIT: If you're using |
@pmadruga I am afraid it worked for you in |
@Piero87 adding |
This solution works for me! Thank you a lot! |
You're right, @WoLewicki - thanks for pointing it out. |
works fine in android 😄 |
borderBottomColor: 'transparent' works for me ios |
Here's what I did for my use case (i.e., the header had to have the exact same colour as the screen's
...haven't tested on Android yet but it works on iOS. |
This comment has been minimized.
This comment has been minimized.
The following worked for me: headerStyle: {
... // your other styles
shadowColor: 'transparent',
} |
This comment has been minimized.
This comment has been minimized.
|
thank you. it worked for me. React navigation version 5 |
https://reactnavigation.org/docs/native-stack-navigator/#headershadowvisible <Stack.Navigator
initialRouteName="home"
screenOptions={{
headerShadowVisible: false
}}
> |
Hey! This issue is closed and isn't watched by the core team. You are welcome to discuss the issue with others in this thread, but if you think this issue is still valid and needs to be tracked, please open a new issue with a repro. |
Worked pretty well at |
tnx , this one woked for me. |
I have the opposite problem with native stack navigator. When I do <MyStack.Navigator
screenOptions={{
headerTransparent: true,
headerBlurEffect: "systemChromeMaterialLight",
headerShadowVisible: true,
}}
> Do you know how to get it back? The native iMessage app on iOS still has the "shadow" even though it uses transparent background. |
@alamothe have u managed to resolve that? |
Current Behavior
In react navigation 4 I could remove the bottom border of the header, in version 5 I can't, this is a screen of the border:
And this is the code I use:
Expected Behavior
I want remove the bottom border i add some arrow to indicate the border to make my self more clear:
Your Environment
The text was updated successfully, but these errors were encountered: