diff --git a/README.md b/README.md index 673f3dd4..ec147083 100644 --- a/README.md +++ b/README.md @@ -91,10 +91,11 @@ style | [style](http://facebook.github.io/react-native/docs/view trackStyle | [style](http://facebook.github.io/react-native/docs/view.html#style) | Yes | | The style applied to the track thumbStyle | [style](http://facebook.github.io/react-native/docs/view.html#style) | Yes | | The style applied to the thumb thumbImage | [source](http://facebook.github.io/react-native/docs/image.html#source) | Yes | | Sets an image for the thumb. +thumbImage | [style](http://facebook.github.io/react-native/docs/view.html#style) | Yes | | The style applied to the thumb, if used. debugTouchArea | bool | Yes | false | Set this to true to visually see the thumb touch rect in green. animateTransitions | bool | Yes | false | Set to true if you want to use the default 'spring' animation animationType | string | Yes | 'timing' | Set to 'spring' or 'timing' to use one of those two types of animations with the default [animation properties](https://facebook.github.io/react-native/docs/animations.html). -animationConfig | object | Yes | undefined | Used to configure the animation parameters. These are the same parameters in the [Animated library](https://facebook.github.io/react-native/docs/animations.html). +animationConfig | object | Yes | undefined | Used to configure the animation parameters. These are the same parameters in the [Animated library](https://facebook.github.io/react-native/docs/animations.html). --- diff --git a/src/Slider.js b/lib/Slider.js similarity index 98% rename from src/Slider.js rename to lib/Slider.js index f2c43654..def23ff2 100644 --- a/src/Slider.js +++ b/lib/Slider.js @@ -148,6 +148,11 @@ export default class Slider extends PureComponent { */ thumbImage: Image.propTypes.source, + /** + * The style applied to the thumb image, if used + */ + thumbImageStyle: ViewPropTypes.style, + /** * Set this to true to visually see the thumb touch rect in green. */ @@ -558,11 +563,11 @@ export default class Slider extends PureComponent { }; _renderThumbImage = () => { - const { thumbImage } = this.props; + const { thumbImage, thumbImageStyle } = this.props; if (!thumbImage) return; - return ; + return ; }; }