mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
ec95533609
commit
fd94033dc1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user