mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
SwitchPropsIOS: Added deprecated to thumbTintColor tintColor. (#29537)
SwitchProps: added thumbColor
This commit is contained in:
Vendored
+9
@@ -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
|
||||
*
|
||||
|
||||
@@ -813,3 +813,7 @@ const NativeBridgedComponent = requireNativeComponent("NativeBridgedComponent",
|
||||
const SwitchColorTest = () => (
|
||||
<Switch trackColor={{ true: 'pink', false: 'red'}} />
|
||||
)
|
||||
|
||||
const SwitchThumbColorTest = () => (
|
||||
<Switch thumbColor={'red'} />
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user