Skip to content

Support arrays in filter style - #2983

Merged
zoontek merged 4 commits into
masterfrom
filter-style
Nov 27, 2026
Merged

zoontek merged 4 commits into
masterfrom
filter-style

Conversation

@zoontek

@zoontek zoontek commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Adds support for the React Native array syntax for filter (e.g. [{ blur: 4 }, { hueRotate: 90 }]).

  • filter accepts string | ReadonlyArray<FilterFunction>, same type as React Native
  • Image applies filter once, on the root view (it was also applied to the inner image)
  • scout: Splits normalizeValueWithProperty into normalizeValue and normalizeValueWithProperty (property is now required)

@zoontek
zoontek requested review from Kudo and hassankhan November 26, 2026 13:54
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Size Change: +200 B (+0.2%)

Total Size: 98.4 kB

📦 View Changed
Filename Size Change
packages/react-native-web/dist/exports/Image/index.js 2.27 kB -7 B (-0.31%)
packages/react-native-web/dist/exports/StyleSheet/compiler/createReactDOMStyle.js 1.55 kB +7 B (+0.45%)
packages/react-native-web/dist/exports/StyleSheet/compiler/index.js 1.94 kB +6 B (+0.31%)
packages/react-native-web/dist/exports/StyleSheet/compiler/normalizeValue.js 294 B +294 B (new file) 🆕
packages/react-native-web/dist/exports/StyleSheet/compiler/normalizeValueWithProperty.js 0 B -274 B (removed) 🏆
packages/react-native-web/dist/exports/StyleSheet/preprocess.js 2.11 kB +174 B (+9.01%) 🔍

compressed-size-action

Base automatically changed from background-style-array to master November 27, 2026 13:51
@zoontek
zoontek merged commit 3b5919a into master Nov 27, 2026
5 checks passed
@zoontek
zoontek deleted the filter-style branch November 27, 2026 13:59
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