From 96d0e4a113d417653efc56eb58fa534f25e5ed86 Mon Sep 17 00:00:00 2001 From: Fedor Nezhivoi Date: Tue, 23 May 2017 09:41:01 +0300 Subject: [PATCH] @types/react-native update Slider props --- types/react-native/index.d.ts | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index a7e922e1b1..07f2dd1741 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -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. */