mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/44458 This is the JS plumbing to get it so that views can now use filters. The typing looks like `filter: [{brightness: 1.5}, {hueRotate: '90deg'}]` which is different than web which would look like `filter: brightness(1.5) hue-rotate(90deg)`. I feel like the web version is overly complicated and not very *react native-y*. Transform uses the array based approach (albeit they also accept a string). Open to changing this but really feel like the web format is silly and bad since it would just involve parsing some arbitrary string. The diff includes: * Style sheet changes so typing is valid * Process function to turn filter format into {name: string, amount: string} * Test for process function * View config changes on Android, iOS and ReactNativeStyleAttributes Changelog: [Internal] Reviewed By: NickGerleman Differential Revision: D56845572 fbshipit-source-id: 5029b5adac29bb863c89f6c699d5693c58cad711