This is a simple javascript slider component for react native.
npm install react-native-simple-sliderThis is a simple javascript slider component for react native.
This package is compatible both Android and iOS.

$ yarn add react-native-simple-slider
or
$ npm install react-native-simple-slider --save
``jsx
state = { value: 0 }
onValueChange={value => this.setState({ value })}
disabledHoverEffect={false}
/>
`
| Attributes | Type | Default | Description |
| :--------- | :--: | :-----: | :----------- |
| value | number | 0 | Value of the slider. |number
| minimumValue | | 0 | Minimum value of the slider. |number
| maximumValue | | 1 | Maximum value of the slider. |func
| onSlidingStart | | () => {} | Callback function that is called when the user begin touch the slider. |func
| onValueChange | | () => {} | Callback fucntion that is called while the user is dragging the slider. |func
| onSlidingComplete | | () => {} | Callback function that is called when the user releases the slider. |boolean
| disabled | | false | If true the user won't be able to move the slider. |boolean
| disabledHoverEffect | | true | If true the slider do not show hover effect. |number
| step | | 0 | Step value of the slider. The value should be between minimumValue to maximumValue. |string
| minimumTrackTintColor | | #3F51B5 | The color used for the track on the left side of thumb button. |string
| maximumTrackTintColor | | #BDBDBD | The color used for the track on the right side of thumb button. |string
| thumbTintColor | | #3F51B5 | Foreground color of thumb button. |number
| thumbButtonSize | | 24 | Size of thumb button. |number
| sliderWidth | | 325 | Width of slider component. |number
| sliderHeight | | 6 | Height of slider component. |number
| sliderBorderRadius | | 3 | Border radius of slider component. |image(string/number)
| thumbImage | | null | Sets an image for the thumb button. Only static images are supported. |element
| thumbButton | | null | Sets an react component for override the thumb button. |
Contributions are welcome. Should run npm run test` before push.
MIT License
Copyright (c) 2018 Chaiyapon