首页指南参考教程

滑块

一个 React Native 组件库,提供对滑块控件的系统 UI 的访问。

Android
iOS
Web

该库在 Expo SDK 参考中列出,因为它包含在 Expo 中。你可以将你选择的任何库与 开发构建 一起使用。

一个组件库,它提供对滑块控件的系统 UI 的访问,允许用户通过拖动锚点在一系列值中进行选择。

¥A component library that provides access to the system UI for a slider control, that allows users to pick among a range of values by dragging an anchor.

安装

¥Installation

Terminal
npx expo install @react-native-community/slider

If you are installing this in an existing React Native app (bare workflow), start by installing expo in your project. Then, follow the additional instructions as mentioned by library's README under "Installation in bare React Native projects" section.

用法

¥Usage

请参阅 @react-native-community/slider 处的完整文档。

¥See full documentation at @react-native-community/slider.

Expo 中文网 - 粤ICP备13048890号