From f493adcf4a6515edbb43545567e0ad9d9ac46119 Mon Sep 17 00:00:00 2001 From: Vicky Ahuja <109548803+VickyA371@users.noreply.github.com> Date: Thu, 3 Aug 2023 15:46:46 -0700 Subject: [PATCH] Update Switch.d.ts (#38636) Summary: updated type for activeThumbColor prop for Switch component To help community users with all possible properties ## Changelog: GENERAL CHANGED - added new prop in type of switch component Pull Request resolved: https://github.com/facebook/react-native/pull/38636 Reviewed By: cortinico Differential Revision: D47800523 Pulled By: lunaleaps fbshipit-source-id: 25b22a97a3c02ad01c8100fdd1f3e808f296c14c --- .../react-native/Libraries/Components/Switch/Switch.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-native/Libraries/Components/Switch/Switch.d.ts b/packages/react-native/Libraries/Components/Switch/Switch.d.ts index 64a735d6648ec6..a95e3ed71a48d6 100644 --- a/packages/react-native/Libraries/Components/Switch/Switch.d.ts +++ b/packages/react-native/Libraries/Components/Switch/Switch.d.ts @@ -51,6 +51,11 @@ export interface SwitchProps extends SwitchPropsIOS { */ thumbColor?: ColorValue | undefined; + /** + * Color of the active foreground switch grip. + */ + activeThumbColor?: ColorValue | undefined; + /** * Custom colors for the switch track *