react-navigation / react-navigation

Routing and navigation for your React Native apps
https://reactnavigation.org
23.44k stars 5k forks source link

Unexpected behavior: headerShadow unexpectedly visible #12063

Closed Softkeydel closed 3 weeks ago

Softkeydel commented 1 month ago

Current behavior

Header shadow visible unexpectedly

https://github.com/user-attachments/assets/2edb6e0e-3520-4b80-b765-6db9b961456b

Already tried with most updated versions of the libraries mentioned

Expected behavior

Header shadow should not visible

https://github.com/user-attachments/assets/bd561646-a000-498b-bc31-9c86a9ba257c

Reproduction

https://github.com/Softkeydel/Reproduce

Platform

Packages

Environment

package version
@react-navigation/native 6.1.17
@react-navigation/drawer 6.7.0
@react-navigation/native-stack 6.10.0
react-native-safe-area-context 4.10.8
react-native-screens 3.32.0
react-native-gesture-handler 2.16.2
react-native-reanimated 3.10.1
react-native 0.72.15
react 18.2.0
node 20.15.1
npm 10.7.0
github-actions[bot] commented 1 month ago

Hey @Softkeydel! Thanks for opening the issue. It seems that the issue doesn't contain a link to a repro.

The best way to get attention to your issue is to provide an easy way for a developer to reproduce the issue.

You can provide a repro using any of the following:

Softkeydel commented 1 month ago

GitHub repo added pls check

Nonag commented 1 month ago

I have the same issue on a screen with a transparent header.

When first adding the screen to the stack, the header is presented as expected. But as soon as you add another screen on top and then navigate back to the screen with the transparent header, the shadow was added.

Softkeydel commented 1 month ago

@Nonag any solution??

edritech93 commented 1 month ago

same issue for me, any solution ?

ngondat97 commented 1 month ago

same issue

santiagomariani-tiendanube commented 1 month ago

same issue

wangchongwei commented 1 month ago

same issue

sakarzac000 commented 3 weeks ago

Same as well. It's worth noting that I wasn't having this issue before using Fabric, but switching to the new arch made it show up.

github-actions[bot] commented 3 weeks ago

Hey! Thanks for opening the issue. Seems that this issue is related to react-native-screens library which is a dependency of React Navigation. Can you also post your issue in this repo so that it's notified to the maintainers of that library? This will help us fix the issue faster since it's upto the maintainers of that library to investigate it.

vantienvnn commented 3 weeks ago

I had the same problem, but it went away after I updated React Native from 0.73 to 0.74. Photo

spo-mmorales commented 3 weeks ago

same issue. Fixed after update react-native-screens to 3.33.0

MuckT commented 3 weeks ago

Updating to react-native-screens@3.33.0 fixes the issue.