文档模板:v0.4.2
react-native-slider
本项目基于 react-native-slider 开发。
该第三方库的仓库已迁移至 Gitcode,且支持直接从 npm 下载,新的包名为:@react-native-ohos/react-native-slider 版本所属关系如下:
| 三方库名称 | 三方库版本(npm地址) | 发布信息 | 支持RN版本 | Autolink | 编译API版本 | 社区基线版本 | 源码地址 |
|---|---|---|---|---|---|---|---|
| @react-native-ohos/react-native-slider | ~0.12.0 | Gitcode Releases | 0.77.* / 0.82.* | 否 | API12+ | 0.11.0 | master |
| @react-native-ohos/react-native-slider | ~0.11.0 | Gitcode Releases | 0.72.* | 否 | API12+ | 0.11.0 | br_rnoh0.72 |
| @react-native-oh-tpl/react-native-slider | <= 0.11.0-0.1.5@deprecated | GitHub Releases(deprecated) | 0.72.* | 否 | API12+ | 0.11.0 | sig |
简介
Slider 组件用于 React Native。
Slider 是一个纯 JavaScript 实现的滑动条组件,用于在指定范围内选择数值,并支持自定义轨道、滑块样式与交互回调!
开发者可以在无需依赖平台原生 Slider 的情况下,创造并交付一致的可视化数值选择体验。
下载安装
进入到工程目录并输入以下命令:
npm
npm install @react-native-ohos/react-native-slider
yarn
yarn add @react-native-ohos/react-native-slider