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 = () => ( + +)