Skip to content
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

Getting warning "shadow*" style props are deprecated. Use "boxShadow" for expo-web in nx-workspace without webpack. #193

Open
1 of 5 tasks
pratish-respo opened this issue Nov 30, 2023 · 0 comments

Comments

@pratish-respo
Copy link

Current behavior

I am using react-native-walkthrough-tooltip package in my nx-workspace. In my workspace, I have mobile(react-native) & web(expo-web). When i run my web project with react-native-web version 0.19.6, I am getting a warning "shadow*" style props are deprecated. Use "boxShadow".
Screenshot from 2023-11-30 13-26-51

Expected behavior

Instead of using shadow in styles as below

shadow: {
shadowColor: 'black',
shadowOffset: { width: 0, height: 2 },
shadowRadius: 2,
shadowOpacity: 0.8,
}

we have to use boxShadow which uses a space separated string containing styles as below

shadow: {
boxShadow: "0px 2px 2px #000000CC"
}

This above change removes the warning in web.

Platform

  • Android
  • iOS
  • Web
  • Windows
  • MacOS

Environment

package version
react-native-walkthrough-tooltip 1.5.0
react-native-web 0.19.6
react-native 0.72.4
expo 49.0.20
node 16.20.0
npm or yarn 9.6.7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant