@phomea/react-native-slider

0.0.6 • Public • Published

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

Package Sidebar

Install

npm i @phomea/react-native-slider

Weekly Downloads

0

Version

0.0.6

License

ISC

Unpacked Size

56.5 kB

Total Files

12

Last publish

Collaborators

  • phomea