A pure JS slider for react-native, version 0.0.1
npm install @phomea/react-native-slider
import {BasicSlider} from '@phomea/react-native-slider';
<BasicSlider onChangeValue={this.onChangeValue} onSeek={this.onSeek} />
import {StepSlider} from '@phomea/react-native-slider';
<StepSlider onChangeValue={this.onChangeValue} />
A callback passing the final value
A callback passing the value on seek
default : true If set to true will round the current value to integer
Style object to override the style of the handler
Define an array of steps you want on your slider. Steps need to have this structure { value : number (required) label : string (optional) }
Define the theme to use for your slider. Accepted values :
- standard
- big
- square
- stick
Feel free to clone the repo and make pull request or open new issues.
If you like to contribute you can patron me: https://www.patreon.com/user?u=25858214
made with ❤️ by Fabio Pocci