callstack / callstack/react-native-slider
Updating step to achieve an uneven step ratio
- 主要语言
- TypeScript
- 星标
- 1.4k
- 派生
- 295
- 平均合并
- 5 分钟
- 30 天内合并 PR
- 1
描述
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?
贡献指南
调研方向
该 issue 未指定文件、测试或入口点。首先阅读 react-native-slider 组件对 value 和 step 的处理,然后检查在每个平台上更改 step 如何与当前 slider 值交互。完成的标准是确定是否支持不均匀步进,并在不重置 slider 位置的情况下记录或实现稳定的行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react-native, typescript
- 领域
- mobile
- Issue 类型
- 功能
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100