From 8fa8fb7a5265dc879106dbec6ec0232268910c56 Mon Sep 17 00:00:00 2001 From: Phecda Su Date: Tue, 4 Nov 2025 03:44:57 -0800 Subject: [PATCH] fix(type): `color` and `blurRadius` of BoxShadowValue mistakenly swapped (#54401) Summary: Fix https://github.com/facebook/react-native/issues/54400 This PR fixes a type definition error. ## Changelog: [GENERAL] [FIXED] - `color` and `blurRadius` of BoxShadowValue mistakenly swapped Pull Request resolved: https://github.com/facebook/react-native/pull/54401 Test Plan: use `tsc` to check Reviewed By: cipolleschi Differential Revision: D86188123 Pulled By: javache fbshipit-source-id: 731fa0cbc1266c2c504e71d89cff7e3aff3e9a9e --- .../react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts b/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts index c0fe6608d45..9446cbe4a24 100644 --- a/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts +++ b/packages/react-native/Libraries/StyleSheet/StyleSheetTypes.d.ts @@ -343,8 +343,8 @@ export type DropShadowValue = { export type BoxShadowValue = { offsetX: number | string; offsetY: number | string; - color?: string | undefined; - blurRadius?: ColorValue | number | undefined; + color?: ColorValue | undefined; + blurRadius?: string | number | undefined; spreadDistance?: number | string | undefined; inset?: boolean | undefined; };