callstack / callstack/react-native-slider

Updating step to achieve an uneven step ratio

Open
#477 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
TypeScript
Stars
1.4k
Forks
295
Avg merge
5m
Merged PRs (30d)
1

Description

Hello! I am currently working on an app where I'd like to set an specific distance. At distances longer than 1000m it doesn't really make sense to have it set on steps of 100m anymore, so then it would be better with steps of 500m, while on distances shorter than 1000m it would be nice to have the specificity of 100m steps.

Currently we are doing this by updating the step value based on the current value of the slider. However, this seems to sometime fail, and sudden changes to the value seem to reset the slider to it's starting value (500m).

I am posing this as a question since I have no idea of this is an bug or (more likely) that our implementation is borky. Is there a better way to implement an uneven stepping of the slider?

Contributor guide

Open the contributing guide

Research direction

The issue does not name files, tests, or an entry point. Start by reading the react-native-slider component's value and step handling, then inspect how changing step interacts with the current slider value on each platform. Done would mean establishing whether uneven stepping is supported and documenting or implementing a stable behavior without resetting the slider position.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, typescript
Domain
mobile
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.