Skip to content

Commit 96d84cd

Browse files
update snapshot test
1 parent 9d12ee6 commit 96d84cd

File tree

1 file changed

+87
-7
lines changed

1 file changed

+87
-7
lines changed

packages/react-native/Libraries/__tests__/__snapshots__/public-api-test.js.snap

Lines changed: 87 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7590,14 +7590,52 @@ export type DropShadowValue = {
75907590
standardDeviation?: number | string,
75917591
color?: ____ColorValue_Internal,
75927592
};
7593-
export type GradientValue = {
7593+
type LinearGradientValue = {
75947594
type: \\"linearGradient\\",
75957595
direction?: string,
75967596
colorStops: $ReadOnlyArray<{
75977597
color: ____ColorValue_Internal,
75987598
positions?: $ReadOnlyArray<string>,
75997599
}>,
76007600
};
7601+
type RadialExtent =
7602+
| \\"closest-corner\\"
7603+
| \\"closest-side\\"
7604+
| \\"farthest-corner\\"
7605+
| \\"farthest-side\\";
7606+
type RadialGradientPosition =
7607+
| {
7608+
top: number | string,
7609+
left: number | string,
7610+
}
7611+
| {
7612+
top: number | string,
7613+
right: number | string,
7614+
}
7615+
| {
7616+
bottom: number | string,
7617+
left: number | string,
7618+
}
7619+
| {
7620+
bottom: number | string,
7621+
right: number | string,
7622+
};
7623+
type RadialGradientValue = {
7624+
type: \\"radialGradient\\",
7625+
shape: \\"circle\\" | \\"ellipse\\",
7626+
size:
7627+
| RadialExtent
7628+
| {
7629+
x: number | string,
7630+
y: number | string,
7631+
},
7632+
position: RadialGradientPosition,
7633+
colorStops: $ReadOnlyArray<{
7634+
color: ____ColorValue_Internal,
7635+
positions?: $ReadOnlyArray<string>,
7636+
}>,
7637+
};
7638+
export type BackgroundImageValue = LinearGradientValue | RadialGradientValue;
76017639
export type BoxShadowValue = {
76027640
offsetX: number | string,
76037641
offsetY: number | string,
@@ -7669,7 +7707,7 @@ export type ____ViewStyle_InternalBase = $ReadOnly<{
76697707
boxShadow?: $ReadOnlyArray<BoxShadowValue> | string,
76707708
filter?: $ReadOnlyArray<FilterFunction> | string,
76717709
mixBlendMode?: ____BlendMode_Internal,
7672-
experimental_backgroundImage?: $ReadOnlyArray<GradientValue> | string,
7710+
experimental_backgroundImage?: $ReadOnlyArray<BackgroundImageValue> | string,
76737711
isolation?: \\"auto\\" | \\"isolate\\",
76747712
}>;
76757713
export type ____ViewStyle_InternalCore = $ReadOnly<{
@@ -7936,19 +7974,61 @@ exports[`public API should not change unintentionally Libraries/StyleSheet/proce
79367974
"type LinearGradientDirection =
79377975
| { type: \\"angle\\", value: number }
79387976
| { type: \\"keyword\\", value: string };
7939-
type ColorStopColor = ProcessedColorValue | null;
7940-
type ColorStopPosition = number | string | null;
7941-
type ParsedGradientValue = {
7977+
type LinearGradientBackgroundImage = {
79427978
type: \\"linearGradient\\",
79437979
direction: LinearGradientDirection,
79447980
colorStops: $ReadOnlyArray<{
79457981
color: ColorStopColor,
79467982
position: ColorStopPosition,
79477983
}>,
79487984
};
7985+
type RadialExtent =
7986+
| \\"closest-corner\\"
7987+
| \\"closest-side\\"
7988+
| \\"farthest-corner\\"
7989+
| \\"farthest-side\\";
7990+
type RadialGradientSize =
7991+
| RadialExtent
7992+
| {
7993+
x: string | number,
7994+
y: string | number,
7995+
};
7996+
type RadialGradientShape = \\"circle\\" | \\"ellipse\\";
7997+
type RadialGradientPosition =
7998+
| {
7999+
top: number | string,
8000+
left: number | string,
8001+
}
8002+
| {
8003+
top: number | string,
8004+
right: number | string,
8005+
}
8006+
| {
8007+
bottom: number | string,
8008+
right: number | string,
8009+
}
8010+
| {
8011+
bottom: number | string,
8012+
left: number | string,
8013+
};
8014+
type RadialGradientBackgroundImage = {
8015+
type: \\"radialGradient\\",
8016+
shape: RadialGradientShape,
8017+
size: RadialGradientSize,
8018+
position: RadialGradientPosition,
8019+
colorStops: $ReadOnlyArray<{
8020+
color: ColorStopColor,
8021+
position: ColorStopPosition,
8022+
}>,
8023+
};
8024+
type ColorStopColor = ProcessedColorValue | null;
8025+
type ColorStopPosition = number | string | null;
8026+
type ParsedBackgroundImageValue =
8027+
| LinearGradientBackgroundImage
8028+
| RadialGradientBackgroundImage;
79498029
declare export default function processBackgroundImage(
7950-
backgroundImage: ?($ReadOnlyArray<GradientValue> | string)
7951-
): $ReadOnlyArray<ParsedGradientValue>;
8030+
backgroundImage: ?($ReadOnlyArray<BackgroundImageValue> | string)
8031+
): $ReadOnlyArray<ParsedBackgroundImageValue>;
79528032
"
79538033
`;
79548034

0 commit comments

Comments
 (0)