@types/react-native update Slider props

This commit is contained in:
Fedor Nezhivoi
2017-05-23 09:41:01 +03:00
parent 5a60b831fb
commit 96d0e4a113
+20 -13
View File
@@ -2908,6 +2908,13 @@ export interface RecyclerViewBackedScrollViewStatic extends ScrollResponderMixin
getScrollResponder(): JSX.Element;
}
export interface SliderPropertiesAndroid extends ViewProperties {
/**
* Color of the foreground switch grip.
*/
thumbTintColor?: string,
}
export interface SliderPropertiesIOS extends ViewProperties {
/**
@@ -2916,24 +2923,12 @@ export interface SliderPropertiesIOS extends ViewProperties {
*/
maximumTrackImage?: ImageURISource
/**
* The color used for the track to the right of the button.
* Overrides the default blue gradient image.
*/
maximumTrackTintColor?: string
/**
* Assigns a minimum track image. Only static images are supported.
* The rightmost pixel of the image will be stretched to fill the track.
*/
minimumTrackImage?: ImageURISource
/**
* The color used for the track to the left of the button.
* Overrides the default blue gradient image.
*/
minimumTrackTintColor?: string
/**
* Sets an image for the thumb. Only static images are supported.
*/
@@ -2947,7 +2942,7 @@ export interface SliderPropertiesIOS extends ViewProperties {
trackImage?: ImageURISource
}
export interface SliderProperties extends SliderPropertiesIOS {
export interface SliderProperties extends SliderPropertiesIOS, SliderPropertiesAndroid {
/**
* If true the user won't be able to move the slider.
@@ -2955,11 +2950,23 @@ export interface SliderProperties extends SliderPropertiesIOS {
*/
disabled?: boolean
/**
* The color used for the track to the right of the button.
* Overrides the default blue gradient image.
*/
maximumTrackTintColor?: string
/**
* Initial maximum value of the slider. Default value is 1.
*/
maximumValue?: number
/**
* The color used for the track to the left of the button.
* Overrides the default blue gradient image.
*/
minimumTrackTintColor?: string
/**
* Initial minimum value of the slider. Default value is 0.
*/