We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 allows the setting of boxShadow using an array of objects: https://reactnative.dev/blog/2024/10/23/release-0.76-new-architecture#boxshadow.
react-native
boxShadow
react-native-web supports only strings.
react-native-web
react-native-web should support setting boxShadow as an array of objects. Like it already does for transform (https://github.com/necolas/react-native-web/blob/0.19.13/packages/react-native-web/src/exports/StyleSheet/preprocess.js#L208-L212)
transform
Compare these two style properties:
// boxShadow: '#ff0000 5px 5px 5px 10px inset', boxShadow: [{ offsetX: 5, offsetY: 5, color: '#ff0000', blurRadius:5, spreadDistance: 10, inset: true }]
https://snack.expo.dev/@rosko/boxshadow-as-array-vs-string
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
Describe the issue
react-native
allows the setting ofboxShadow
using an array of objects: https://reactnative.dev/blog/2024/10/23/release-0.76-new-architecture#boxshadow.react-native-web
supports only strings.Expected behavior
react-native-web
should support settingboxShadow
as an array of objects. Like it already does fortransform
(https://github.com/necolas/react-native-web/blob/0.19.13/packages/react-native-web/src/exports/StyleSheet/preprocess.js#L208-L212)
Steps to reproduce
Compare these two style properties:
Test case
https://snack.expo.dev/@rosko/boxshadow-as-array-vs-string
Additional comments
No response
The text was updated successfully, but these errors were encountered: