反应原生圆形滑块? [英] React Native Circular Slider?

查看:44
本文介绍了反应原生圆形滑块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试浏览了几个 React Native 圆形滑块库,但是它们都没有按预期工作.它们都遭受相同的错误,即在您滑动时它们会随机更改值.一个例子是:

I've tried to look through several libraries of React Native circular sliders, however none of them work as intended. All of them suffer the same bug where they randomly change values as you slide. A example would be:

我正在寻找的是一个圆形滑块,它的值位于滑块的中间,非常像这样:

What I am looking for, is a circular slider with it's value in the middle of the slider, very much so like this:

提前致谢

如果您想尝试一下,我已经添加了一个测试存储库.我已经尽力了,但这是我能做的最好的

I've added a test repo if you want to play around with it. I've tried my best, but this is the best I could do

https://github.com/2joocy/SliderTest

代码取自此处:

https://github.com/steveliles/react-native-circular-滑块示例

推荐答案

我还没有使用过圆形滑块.但我尝试搜索,发现有 2 个 repos.也许这就是您所需要的.

I haven't worked with circle slider yet. But I tried to search and there are 2 repos. Maybe that is what you need.

https://github.com/bgryszko/react-native-circular-slider

https://github.com/raymondchooi/react-native-circle-slider

祝你好运!

这篇关于反应原生圆形滑块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆