From 3dec5cce47fc2ec316dcc2b23914e9e39b404fc6 Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski <70535775+BartoszKlonowski@users.noreply.github.com> Date: Sun, 23 Jan 2022 16:06:39 +0100 Subject: [PATCH 1/3] Describe controlled value in the README --- README.md | 2 +- src/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index adf649ae..e4f36c30 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,7 @@ To use this library you need to ensure you are using the correct version of Reac | `step` | Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.
On Windows OS the default value is 1% of slider's range (from `minimumValue` to `maximumValue`). | number | No | | | `maximumTrackTintColor` | The color used for the track to the right of the button.
Overrides the default gray gradient image on iOS. | [color](https://reactnative.dev/docs/colors) | No | | | `testID` | Used to locate this view in UI automation tests. | string | No | | -| `value` | Initial value of the slider. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.
_This is not a controlled component_, you don't need to update the value during dragging. | number | No | | +| `value` | Write-only property representing the value of the slider. Can be used to programmaticaly controll the position of the thumb. Entered once at the beginning still acts as an initial value. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.
_This is not a controlled component_, you don't need to update the value during dragging. | number | No | | | `tapToSeek` | Permits tapping on the slider track to set the thumb position.
Defaults to false on iOS. No effect on Android or Windows. | bool | No | iOS | | `inverted` | Reverses the direction of the slider.
Default value is false. | bool | No | | | `vertical` | Changes the orientation of the slider to vertical, if set to `true`.
Default value is false. | bool | No | Windows | diff --git a/src/README.md b/src/README.md index 21bb2c03..40bf955c 100644 --- a/src/README.md +++ b/src/README.md @@ -95,7 +95,7 @@ To use this library you need to ensure you are using the correct version of Reac | `step` | Step value of the slider. The value should be between 0 and (maximumValue - minimumValue). Default value is 0.
On Windows OS the default value is 1% of slider's range (from `minimumValue` to `maximumValue`). | number | No | | | `maximumTrackTintColor` | The color used for the track to the right of the button.
Overrides the default gray gradient image on iOS. | [color](https://reactnative.dev/docs/colors) | No | | | `testID` | Used to locate this view in UI automation tests. | string | No | | -| `value` | Initial value of the slider. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.
_This is not a controlled component_, you don't need to update the value during dragging. | number | No | | +| `value` | Write-only property representing the value of the slider. Can be used to programmaticaly controll the position of the thumb. Entered once at the beginning still acts as an initial value. The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.
_This is not a controlled component_, you don't need to update the value during dragging. | number | No | | | `tapToSeek` | Permits tapping on the slider track to set the thumb position.
Defaults to false on iOS. No effect on Android or Windows. | bool | No | iOS | | `inverted` | Reverses the direction of the slider.
Default value is false. | bool | No | | | `vertical` | Changes the orientation of the slider to vertical, if set to `true`.
Default value is false. | bool | No | Windows | From 5088fe6d28e696ca0cd51031c9828ad0963f4002 Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski <70535775+BartoszKlonowski@users.noreply.github.com> Date: Sun, 23 Jan 2022 16:07:16 +0100 Subject: [PATCH 2/3] Update version of the package --- src/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/package.json b/src/package.json index f17143e0..508da97f 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,6 @@ { "name": "@react-native-community/slider", - "version": "4.1.12", + "version": "4.2.0", "license": "MIT", "author": "react-native-community", "homepage": "https://github.com/callstack/react-native-slider#readme", From 335cace31544b12eaa9591f24ae15dff005e8d5e Mon Sep 17 00:00:00 2001 From: Bartosz Klonowski <70535775+BartoszKlonowski@users.noreply.github.com> Date: Sun, 23 Jan 2022 16:41:49 +0100 Subject: [PATCH 3/3] Update version in lockfile --- yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index fbb1a436..1a4efa98 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2196,7 +2196,7 @@ prettier "1.16.4" "@react-native-community/slider@file:src": - version "4.1.12" + version "4.2.0" "@react-native-windows/cli@0.65.0": version "0.65.0"