react-native-range-bar

1.0.0 • Public • Published
  • react-native-range-bar is A dynamic Multi slider bar that response to the touch with react native animation and has a minimum and maximum select.

  • It comes with a built-in TypeScript typings and is compatible with all popular JavaScript frameworks. You can use it directly or leverage well-maintained wrapper packages that allow for a more native integration with your frameworks of choice.

Installation:

npm i react-native-range-bar

yarn add react-native-range-bar

Usage:

import MultiSlider from 'react-native-range-bar';


  <MultiSlider
              initialMaxValue={80}
              initialMinValue={18}
              sliderWidth={Dimensions.get('window').width - 100}
              min={0}
              max={100}
              step={1}
              onValueChange={range => {
                console.log('range', range);
                setLImitedAges([range.min, range.max]);
              }}
            />

Example:

Dataset Properties

Name Type
min number
max number
step number
initialMinValue number
initialMaxValue number
sliderWidth number
onValueChange ({min, max}: {min: number; max: number}) => void
primaryColor? string
seconderyColor? string

Package Sidebar

Install

npm i react-native-range-bar

Weekly Downloads

5

Version

1.0.0

License

ISC

Unpacked Size

230 kB

Total Files

8

Last publish

Collaborators

  • shelly_amabr