1.2.1 • Published 7 years ago

react-native-line-gauge v1.2.1

Weekly downloads
3
License
ISC
Repository
-
Last release
7 years ago

react-native-line-gauge

A sliding linear gauge (or rule) to pick values easily

screenshot

Note: This component is only the slide-y bits in the center. You'll want to add your own label and value components.

Install

npm install -S react-native-line-gauge

Usage

<LineGauge min={0} max={100} value={42} onChange={this._handleGaugeChange} />

Props

PropDefaultDescription
min1minimum value to render
max100maximum value to render
largeInterval10makes a long tick every largeInterval
mediumInterval5makes a medium tick every mediumInterval
valuesets the scroll offset to match this value render
onChangenoopreturns current value on scroll

Showcase

Used in the following apps:

Windchill

App Store

npm.io

License

ISC, copyright Nic Haynes

1.2.1

7 years ago

1.2.0

7 years ago

1.1.2

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago