Closed demoox closed 2 weeks ago
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found: 6.0.2
, latest: 6.1.17
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
The versions mentioned in the issue for the following packages differ from the latest versions on npm:
@react-navigation/native
(found:6.0.2
, latest:6.1.17
)Can you verify that the issue still exists after upgrading to the latest versions of these packages?
The problem persists
Anyone have a solution?
As documented on this page, the only supported property is backgroundColor
https://reactnavigation.org/docs/native-stack-navigator/#headerstyle
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.
ds
Comme indiqué sur cette page, la seule propriété prise en charge est
backgroundColor
https://reactnavigation.org/docs/native-stack-navigator/#headerstyle
@satya164 Can you provide a clearer answer or solution instead of simply closing the topic? Is it possible to add a custom shadow other than in headerStyle? because many apps do it
As I already wrote, the only supported property is backgroundColor
. "only" means there's nothing else that's supported, which means shadow is not supported. Please try to read next time.
@demoox native stack is less customizable as mentioned on top of the page and only supports what's supported by Android/iOS. If you want more customization you either need to use a custom header with the header
option, or use JS stack (@react-navigation/stack
).
Current behavior
I tried this:
I also tried this:
no shadow appears:
Expected behavior
Reproduction
https://snack.expo.dev/@demoox/cannot-style-shadow-header
Platform
Packages
Environment