Skip to content

StyleSheet: remove shadow and textShadow options - #2989

Merged
zoontek merged 2 commits into
masterfrom
remove-stylesheet-shadow-options
Dec 2, 2026
Merged

zoontek merged 2 commits into
masterfrom
remove-stylesheet-shadow-options

Conversation

@zoontek

@zoontek zoontek commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator
  • Remove the shadow and textShadow options from StyleSheet() and StyleSheet.resolve(). shadow* and textShadow* styles are now always converted.
  • These options were added for Image, but Image never used them. Expo and Reanimated do not use them, and the docs and public types do not list them.
  • resolve now always uses the shared LTR and RTL styleq instances.

@zoontek
zoontek requested review from Kudo and hassankhan November 30, 2026 15:11
@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Size Change: -141 B (-0.14%)

Total Size: 98.3 kB

📦 View Changed
Filename Size Change
packages/react-native-web/dist/exports/StyleSheet/index.js 838 B -78 B (-8.52%) ✅
packages/react-native-web/dist/exports/StyleSheet/preprocess.js 2.07 kB -42 B (-1.99%)
packages/react-native-web/dist/modules/createDOMProps/index.js 1.11 kB -21 B (-1.85%)

compressed-size-action

@zoontek
zoontek merged commit ebadaf9 into master Dec 2, 2026
5 checks passed
@zoontek
zoontek deleted the remove-stylesheet-shadow-options branch December 2, 2026 09:13
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

Successfully merging this pull request may close these issues.

2 participants