+
+
+
+```typescript
+ stepMarked: boolean;
+```
+
+ |
+
+
+Indicates whether that custom step is the one that the thum is currently on.
+ If user drags or clicks on that step, thumb will be moved there and the `stepMarked` parameter will be set to `true`.
+ Use it, to differentiate between rendering your custom thumb component, or your custom step marker.
+
+ |
+
+
+
+
+```typescript
+ currentValue: number;
+```
+
+ |
+
+Contains the `number` type saying at which value of the Slider the thumb currently is.
+ Use it, for example, to render the Slider value on every step marker, or to render different step marker's variant depending on the Thumb position.
+
+ |
+
+
+
+
+```typescript
+ index: number;
+```
+
+ |
+
+
+Contains the index at which this exact instantiation of your custom step marker was rendered at.
+ Use it if you would like to render step number within the step marker, or, for example, if you want to render many variants of step marker depending on their positions along the Slider's width.
+
+ |
+
+
+
+
+```typescript
+ min: number;
+```
+
+ |
+
+
+Minimum value of the Slider. It is equal to `minimumValue` and has the same default if not set.
+
+ |
+
+
+
+
+```typescript
+ max: number;
+```
+
+ |
+
+
+Maximum value of the Slider. It is equal to `maximumValue` and has the same default if not set.
+
+ |
+
+
+
## Roadmap and Progress
There's a Project board available [here](https://github.com/callstack/react-native-slider/projects/1) which contains all reported issues organized into columns regarding their status.
diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock
index bf740a51..cd43d463 100644
--- a/example/ios/Podfile.lock
+++ b/example/ios/Podfile.lock
@@ -1806,10 +1806,10 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
boost: 1dca942403ed9342f98334bf4c3621f011aa7946
- DoubleConversion: fea03f2699887d960129cc54bba7e52542b6f953
+ DoubleConversion: f16ae600a246532c4020132d54af21d0ddb2a385
FBLazyVector: be7314029d6ec6b90f0f75ce1195b8130ed9ac4f
fmt: 10c6e61f4be25dc963c36bd73fc7b1705fe975be
- glog: c5d68082e772fa1c511173d6b30a9de2c05a69a2
+ glog: 08b301085f15bcbb6ff8632a8ebaf239aae04e6a
hermes-engine: 0555a84ea495e8e3b4bde71b597cd87fbb382888
RCT-Folly: bf5c0376ffe4dd2cf438dcf86db385df9fdce648
RCTDeprecation: 2c5e1000b04ab70b53956aa498bf7442c3c6e497
@@ -1874,4 +1874,4 @@ SPEC CHECKSUMS:
PODFILE CHECKSUM: 1a52083da6c006694389963dc5ddd0deab10abc9
-COCOAPODS: 1.15.2
+COCOAPODS: 1.14.2
diff --git a/example/package-lock.json b/example/package-lock.json
index 38be536d..3656f6cb 100644
--- a/example/package-lock.json
+++ b/example/package-lock.json
@@ -49,6 +49,7 @@
}
},
"../package": {
+ "name": "@react-native-community/slider",
"version": "4.5.5",
"license": "MIT",
"devDependencies": {
diff --git a/example/src/Examples.tsx b/example/src/Examples.tsx
index d0448042..9f67eea6 100644
--- a/example/src/Examples.tsx
+++ b/example/src/Examples.tsx
@@ -1,4 +1,4 @@
-import React, {FC, useState} from 'react';
+import React, {FC, useCallback, useState} from 'react';
import {Text, View, StyleSheet, Image} from 'react-native';
import Slider, {MarkerProps, SliderProps} from '@react-native-community/slider';
@@ -70,6 +70,18 @@ const SlidingCompleteExample = (props: SliderProps) => {
};
const SlidingStepsExample = (props: SliderProps) => {
+ const renderStepMarker = useCallback(({stepMarked}: MarkerProps) => {
+ return stepMarked ? (
+