From d63c0ae3bc6599dae9bbed331bf84f6e8c132e39 Mon Sep 17 00:00:00 2001 From: Thomas Hauglid Date: Mon, 8 Oct 2018 17:54:39 +0200 Subject: [PATCH] SwitchPropsIOS: Added deprecated to thumbTintColor tintColor. (#29537) SwitchProps: added thumbColor --- types/react-native/index.d.ts | 9 +++++++++ types/react-native/test/index.tsx | 4 ++++ 2 files changed, 13 insertions(+) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 9642fa3a23..e18695e55d 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -8087,16 +8087,25 @@ export interface SwitchPropsIOS extends ViewProps { /** * Color of the foreground switch grip. + * + * @deprecated */ thumbTintColor?: string; /** * Background color when the switch is turned off. + * + * @deprecated */ tintColor?: string; } export interface SwitchProps extends SwitchPropsIOS { + /** + * Color of the foreground switch grip. + */ + thumbColor?: string; + /** * Custom colors for the switch track * diff --git a/types/react-native/test/index.tsx b/types/react-native/test/index.tsx index a040404bed..2b2b4ecaa1 100644 --- a/types/react-native/test/index.tsx +++ b/types/react-native/test/index.tsx @@ -813,3 +813,7 @@ const NativeBridgedComponent = requireNativeComponent("NativeBridgedComponent", const SwitchColorTest = () => ( ) + +const SwitchThumbColorTest = () => ( + +)