0.0.6 • Published 6 years ago

@phomea/react-native-slider v0.0.6

Weekly downloads
7
License
ISC
Repository
github
Last release
6 years ago

react-native-slider

A pure JS slider for react-native, version 0.0.1

example1 example2

Install

npm install @phomea/react-native-slider

Usage

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} />

Props

onChangeValue : function(value)

A callback passing the final value

onSeek : function(value)

A callback passing the value on seek

intValue : boolean

default : true If set to true will round the current value to integer

handlerStyle

Style object to override the style of the handler

steps : array

Define an array of steps you want on your slider. Steps need to have this structure { value : number (required) label : string (optional) }

theme : string

Define the theme to use for your slider. Accepted values :

  • standard
  • big
  • square
  • stick

Conclusion

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

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago