项目
在 GitHub 查看
alantoa/react-native-awesome-slider
关于
🎨 灵活且响应迅速的 React Native/Web <Slider /> 组件。
网站与应用开发可以做什么
- Discrete sliding
- Continuous sliding
- Snapping behavior
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Core Features
- Discrete sliding
- Continuous sliding
- Step control
- Snapping behavior
Interaction
- Scrubbing control
- Haptic feedback
Customization
- Custom thumb
- Custom bubble tooltip
- Custom mark
- Customizable appearance
Use Cases
- Media Player Controls (video/audio progress, volume, playback speed)
- Financial Trading Tools (position size, leverage ratio)
- General Purpose (numeric value adjustment, settings configuration)
Installation
First, install and configure Reanimated v2 and react-native-gesture-handler
For react-native-gesture-handler version >= 2:
yarn add react-native-awesome-slider
For version < 2:
yarn add react-native-awesome-slider@1
Basic Usage
import { useSharedValue } from 'react-native-reanimated';
import { Slider } from 'react-native-awesome-slider';
export const Example = () => {
const progress = useSharedValue(30);
const min = useSharedValue(0);
const max = useSharedValue(100);
return <Slider progress={progress} minimumValue={min} maximumValue={max} />;
};
Documentation
For complete component props and advanced usage, visit our official documentation.
License
MIT © Alan Toa
探索相关项目
加载中…