This documentation is available as Markdown for AI agents and LLMs. See the full Markdown index or append .md to any documentation URL.
Slider
A slider compatible with @react-native-community/slider.
Android
iOS
Web
Included in Expo Go
Recommended version:
~56.0.26
A Slider component with an API compatible with @react-native-community/slider. It uses a Material 3 Slider on Android, a SwiftUI Slider on iOS, and a native <input type="range"> element on web.
Under the hood this component wraps the platform-specific @expo/ui primitives:
- Android: Jetpack Compose Slider
- iOS: SwiftUI Slider
If you need lower-level control, use those primitives directly.
Installation
Terminal
If you are installing this in an existing React Native app, make sure to install expo in your project.
Migrating from @react-native-community/slider
- Update the import from
import Slider from '@react-native-community/slider'toimport Slider from '@expo/ui/community/slider'. onSlidingStart,onSlidingComplete,tapToSeek,StepMarker,renderStepNumber,thumbImage,minimumTrackImage,maximumTrackImage,trackImage,accessibilityUnits,accessibilityIncrements,testID, andref.updateValueare not yet supported.- On iOS,
maximumTrackTintColorandthumbTintColorhave no visual effect — SwiftUI'sSlideronly exposes the minimum (active) track tint.minimumTrackTintColorworks on both platforms.
Basic usage
SliderExample.tsx
API
import Slider from '@expo/ui/community/slider';
No API data file found, sorry!