@react-native-community/slider
Advanced tools
Comparing version 4.4.1 to 4.4.2
{ | ||
"name": "@react-native-community/slider", | ||
"version": "4.4.1", | ||
"version": "4.4.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "react-native-community", |
@@ -99,7 +99,7 @@ <p align="center"> | ||
| `testID` | Used to locate this view in UI automation tests. | string | No | | | ||
| `value` | Write-only property representing the value of the slider. Can be used to programmatically control 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.<br/>_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 programmatically control the position of the thumb. Entered once at the beginning still acts as an initial value. Changing the value programmatically does not trigger any event.<br/>The value should be between minimumValue and maximumValue, which default to 0 and 1 respectively. Default value is 0.<br/>_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.<br/>Defaults to false on iOS. No effect on Android or Windows. | bool | No | iOS | | ||
| `inverted` | Reverses the direction of the slider.<br/>Default value is false. | bool | No | | | ||
| `vertical` | Changes the orientation of the slider to vertical, if set to `true`.<br/>Default value is false. | bool | No | Windows | | ||
| `thumbTintColor` | Color of the foreground switch grip. | [color](https://reactnative.dev/docs/colors) | No | Android | | ||
| `thumbTintColor` | Color of the foreground switch grip.<br/>**NOTE:** This prop will override the `thumbImage` prop set, meaning that if both `thumbImage` and `thumbTintColor` will be set, image used for the thumb may not be displayed correctly! | [color](https://reactnative.dev/docs/colors) | No | Android | | ||
| `maximumTrackImage` | Assigns a maximum track image. Only static images are supported. The leftmost pixel of the image will be stretched to fill the track. | Image<br/>.propTypes<br/>.source | No | iOS | | ||
@@ -106,0 +106,0 @@ | `minimumTrackImage` | Assigns a minimum track image. Only static images are supported. The rightmost pixel of the image will be stretched to fill the track. | Image<br/>.propTypes<br/>.source | No | iOS | |
import * as React from 'react'; | ||
import * as ReactNative from 'react-native'; | ||
type Constructor<T> = new (...args: any[]) => T; | ||
type SliderReferenceType = | ||
@@ -175,5 +177,5 @@ | (React.MutableRefObject<SliderRef> & React.LegacyRef<Slider>) | ||
declare class SliderComponent extends React.Component<SliderProps> {} | ||
declare const SliderBase: ReactNative.Constructor<ReactNative.NativeMethods> & | ||
declare const SliderBase: Constructor<ReactNative.NativeMethods> & | ||
typeof SliderComponent; | ||
export default class Slider extends SliderBase {} | ||
export type SliderIOS = Slider; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
881
252473