Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rn-range-slider

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-range-slider - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

2

package.json
{
"name": "rn-range-slider",
"version": "1.2.1",
"version": "1.2.2",
"author": "Tigran Sahakyan <mail.of.tigran@gmail.com>",

@@ -5,0 +5,0 @@ "description": "React Native Range Slider for Android and iOS",

@@ -49,3 +49,3 @@ # RangeSlider

#### Properties
### Properties

@@ -55,5 +55,4 @@ Supported color formats are: **#RGB**, **#RGBA**, **#RRGGBB**, **#RRGGBBAA**

| Property | Description | Type | Default Value |
| Name | Description | Type | Default Value |
|----------|-----------------------|------|:-------------:|
| onValueChanged | A callback to be called when value was changed.<br/>**(lowValue, highValue, fromUser) => {}**<br/>**fromUser** parameter is true if the value was changed because of user's interaction (not by calling **setLowValue** or **setHighValue** methods). Just like android's [OnSeekbarChangeListener](https://developer.android.com/reference/android/widget/SeekBar.OnSeekBarChangeListener). | Function | **4** |
| rangeEnabled | Slider works as an ordinary slider with 1 control if false | Boolean | **true** |

@@ -84,6 +83,6 @@ | lineWidth | Width of slider's line | Number | **4** |

| initialHighValue | Initial value of higher thumb | Number (integer) | **100** |
<br/>
If **initialLowValue** ( or **initialHighValue**) is not provided, it's set to **min** (or **max**).
#### Methods
### Methods

@@ -113,8 +112,14 @@ To call methods of ```RangeSlider``` you need to have a reference to it's instance.<br/>

| Method | Description | Params |
|----------|-----------------------|------|
| Name | Description | Params |
|---|---|---|
| setLowValue | Set low value of slider | value: number |
| setHighValue | Set high value of slider | value: number |
### Callbacks
| Name | Description | Params |
|----------|---------------------|--------|
| onValueChanged | A callback to be called when value was changed.<br/>**fromUser** parameter is true if the value was changed because of user's interaction (not by calling **setLowValue** or **setHighValue** methods). Just like android's [OnSeekbarChangeListener](https://developer.android.com/reference/android/widget/SeekBar.OnSeekBarChangeListener). | lowValue: number<br/><br/>highValue: number<br/><br/>fromUser: boolean |
## Known issues
* Label's corner radius is not working on iOS

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc