SwitchPropsIOS: Added deprecated to thumbTintColor tintColor. (#29537)

SwitchProps: added thumbColor
This commit is contained in:
Thomas Hauglid
2018-10-08 08:54:39 -07:00
committed by Andy
parent 8799abfabc
commit d63c0ae3bc
2 changed files with 13 additions and 0 deletions
+9
View File
@@ -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
*
+4
View File
@@ -813,3 +813,7 @@ const NativeBridgedComponent = requireNativeComponent("NativeBridgedComponent",
const SwitchColorTest = () => (
<Switch trackColor={{ true: 'pink', false: 'red'}} />
)
const SwitchThumbColorTest = () => (
<Switch thumbColor={'red'} />
)