Skip to content

Commit b418cf4

Browse files
committed
fix: add conic gradient to legacy TypeScript types
1 parent 83bc4fc commit b418cf4

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

‎packages/react-native/types_DEPRECATED/Libraries/StyleSheet/StyleSheetTypes.d.ts‎

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,24 @@ type RadialGradientValue = {
407407
}>;
408408
};
409409

410-
export type BackgroundImageValue = LinearGradientValue | RadialGradientValue;
410+
type ConicGradientValue = {
411+
type: 'conic-gradient';
412+
from?: string | undefined;
413+
position?: RadialGradientPosition | undefined;
414+
colorStops: ReadonlyArray<
415+
| {
416+
color: ColorValue | null;
417+
positions?: ReadonlyArray<string> | undefined;
418+
}
419+
| {
420+
color?: null | undefined;
421+
positions: readonly [string];
422+
}
423+
>;
424+
};
425+
426+
export type BackgroundImageValue =
427+
LinearGradientValue | RadialGradientValue | ConicGradientValue;
411428

412429
export type BackgroundSizeValue = {
413430
x: string | number;

0 commit comments

Comments
 (0)