This is documentation for the next SDK version. For up-to-date documentation, see the latest version (SDK 54).

Slider

A Jetpack Compose Slider component for selecting values from a range.

Android

A slider component that allows users to select a value from a continuous range by dragging a thumb along a track.

Installation

Terminal
npx expo install @expo/ui

If you are installing this in an existing React Native app, make sure to install expo in your project.

Usage

import { Slider } from '@expo/ui/jetpack-compose'; <Slider style={{ minHeight: 60 }} value={value} onValueChange={(value) => { setValue(value); }} />

See official Jetpack Compose documentation for more information.

API

import { Slider } from '@expo/ui/jetpack-compose';

No API data file found, sorry!