-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
React Native V0.71.0 Shadow Warnings #3593
Comments
As you noticed the issue comes form the |
Thanks @lukewalczak. Looking toward to what you find. |
Can agree |
Having the same issue after a recent update. Is it open to PR ? |
Sure, contributions are welcomed! |
This is happening with the Portal and Dialog components as well. |
Adding on to what @visoft mentioned: this is also happening with the FAB component as well. Basically anything that has a shadow built in it seems like. |
We are aware of that issue and there is a PR which should fix the warning. |
Version |
Everything is lookin great! Thanks for the updates! |
@lukewalczak I'm still getting this warning in Seems to be the |
I'm getting this warnings in |
any update? |
someone know to ignore this warning from console/terminal? |
I was not able to reproduce it unfortunately with the
Correct, there is still the warning in
The log is printed from |
@lukewalczak is this something actively being investigated?
I am handing over a project to a client with a technical person onboard and they are giving me grief about any warnings in the console. Suppressing is both challenging and now that they have seen the warning, potentially not viable for me. |
This error requires you to specify the background color of the element you want to shade.something like that: |
This issue is still present react-native: 0.72.4 |
react-native: 0.71.8 This issue is present, I'm seeing it in the AnimatedFAB |
We are also seeing this: WARN (ADVICE) View #46655 of type RCTView has a shadow set but cannot calculate shadow efficiently. Consider setting a background color to fix this, or apply the shadow to a more specific component. |
Im seeing this as well. Any way to ignore / silence it? |
Did you find any way to silence it? |
@Fortidude @CostasCF I am also looking for a way to silence this. |
Still no fix for this ?? |
Im using this version |
Hi ! I've finally identified the issue. Initially, I thought it might be related to |
not work :/ react-native: 0.73.2, react-native-paper: 5.12.1 |
only adding the backgroundColor to the elevated component :/ |
This issue is still present!. |
If you do not need the functionalities of the Surface component, you can go to the AnimatedFAB.tsx and replace the |
For me it was the elevated style of a react-native-elements Icon. Result: As the advise says I set the backgroundColor and the warning is gone |
Current behaviour
Since upgrading to React Native 0.71.0, the following warning has been occurring
WARN (ADVICE) View #1853 of type RCTView has a shadow set but cannot calculate shadow efficiently. Consider setting a background color to fix this, or apply the shadow to a more specific component.
After removing several React Native paper Components (especially Surface), the warnings dropped. After reverting to original, the warnings all return.
Expected behaviour
No warning should be shown.
How to reproduce?
Run a React Native App using V0.71.0 and view the terminal running
react-native start
Preview
Your Environment
The text was updated successfully, but these errors were encountered: