Repository navigation
feat: Add backdrop-filter support for Android - #59141
marcinszalski-callstack wants to merge 1 commit into
Conversation
|
Hi @marcinszalski-callstack, thanks for this. We tried the Android + JS PRs (#59141 + #59138) together in RNTester on an Android 17 QPR emulator (SDK 37.2) and ran into two things that also affect the snapshot path:
We also built a native path on top of this PR for SDK 37.2+, where
Below 37.2 your snapshot path is unchanged. The method is resolved by reflection since Branch: https://github.com/kagantemizkan/react-native/tree/native-backdrop-37-2 (one commit on top of yours: kagantemizkan@cc5d61b) Happy to open it as a PR against your branch, or as a follow-up once this lands, whichever you prefer. Screenshots (SDK 37.2 emulator, native path):
View over a sibling
|






Summary:
This PR adds JS support for the
backdrop-filterstyle property. It follows the CSS Filters spec as applied to backdrop rendering. The property accepts the sameFilterFunctiontype already used by thefilterproperty, so no new types are introduced — the existing array and string parsing viaprocessFilteris reused directly.Supported filter functions:
blur,brightness,contrast,grayscale,sepia,saturate,invert,hue-rotate,drop-shadow.Work has been split into three PRs for more convenient reviewing. This part adds Android support.
Changelog:
[ANDROID] [ADDED] - Add
backdrop-filterCSS support for AndroidTest Plan:
Merge the JS and iOS PRs and run the RNTester app.
BackdropFilterExample.js)