JS Pumbing to get mix-blend-mode into native (#45051)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/45051

tsia

Changelog: [Internal]

Reviewed By: javache

Differential Revision: D58753970

fbshipit-source-id: df3cf8852fbc5f2a95f442c9067358608321ed20
This commit is contained in:
Jorge Cabiedes Acosta
2024-07-03 20:55:27 -07:00
committed by Facebook GitHub Bot
parent ec95533609
commit fd94033dc1
4 changed files with 43 additions and 0 deletions
@@ -120,6 +120,11 @@ const ReactNativeStyleAttributes: {[string]: AnyAttributeType, ...} = {
*/
experimental_filter: {process: processFilter},
/**
* MixBlendMode
*/
experimental_mixBlendMode: true,
/**
* View
*/
@@ -169,6 +169,7 @@ const validAttributesForNonEventProps = {
experimental_filter: {
process: require('../StyleSheet/processFilter').default,
},
experimental_mixBlendMode: true,
opacity: true,
elevation: true,
shadowColor: {process: require('../StyleSheet/processColor').default},
@@ -713,11 +713,30 @@ type ____FilterStyle_Internal = $ReadOnly<{
experimental_filter?: $ReadOnlyArray<FilterPrimitive>,
}>;
export type ____MixBlendMode_Internal =
| 'normal'
| 'multiply'
| 'screen'
| 'overlay'
| 'darken'
| 'lighten'
| 'color-dodge'
| 'color-burn'
| 'hard-light'
| 'soft-light'
| 'difference'
| 'exclusion'
| 'hue'
| 'saturation'
| 'color'
| 'luminosity';
export type ____ViewStyle_InternalCore = $ReadOnly<{
...$Exact<____LayoutStyle_Internal>,
...$Exact<____ShadowStyle_Internal>,
...$Exact<____TransformStyle_Internal>,
...____FilterStyle_Internal,
experimental_mixBlendMode?: ____MixBlendMode_Internal,
backfaceVisibility?: 'visible' | 'hidden',
backgroundColor?: ____ColorValue_Internal,
borderColor?: ____ColorValue_Internal,
@@ -7700,11 +7700,29 @@ export type ____ShadowStyle_Internal = $ReadOnly<{
type ____FilterStyle_Internal = $ReadOnly<{
experimental_filter?: $ReadOnlyArray<FilterPrimitive>,
}>;
export type ____MixBlendMode_Internal =
| \\"normal\\"
| \\"multiply\\"
| \\"screen\\"
| \\"overlay\\"
| \\"darken\\"
| \\"lighten\\"
| \\"color-dodge\\"
| \\"color-burn\\"
| \\"hard-light\\"
| \\"soft-light\\"
| \\"difference\\"
| \\"exclusion\\"
| \\"hue\\"
| \\"saturation\\"
| \\"color\\"
| \\"luminosity\\";
export type ____ViewStyle_InternalCore = $ReadOnly<{
...$Exact<____LayoutStyle_Internal>,
...$Exact<____ShadowStyle_Internal>,
...$Exact<____TransformStyle_Internal>,
...____FilterStyle_Internal,
experimental_mixBlendMode?: ____MixBlendMode_Internal,
backfaceVisibility?: \\"visible\\" | \\"hidden\\",
backgroundColor?: ____ColorValue_Internal,
borderColor?: ____ColorValue_Internal,