Reference version

This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.

@react-native-community/slider

一个 React Native 组件库,可用于访问系统 UI 中的滑块控件

Android
iOS
Web
Included in Expo Go
Recommended version:
5.2.1

一个可访问系统滑块控件 UI 的组件库,用户可以通过拖动滑块,在一系列数值中进行选择。

安装

Terminal
- npx expo install @react-native-community/slider
- yarn expo install @react-native-community/slider
- pnpm expo install @react-native-community/slider
- bun expo install @react-native-community/slider

If you are installing this in an existing React Native app, make sure to install expo in your project. Then, follow the installation instructions provided in the library's README or documentation.

了解更多

访问官方文档

获取 API 及其用法的完整信息。