Skip to main content
196

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
FormsReact Native

Range slider

Choose bounded numeric intervals with independently adjustable native endpoints.

Public APILumenRangeSliderReact Native

Native example

Use Range slider

Bounds must be finite, increasing, and have a finite span. Nonfinite values fall back to bounds; reversed endpoints reorder for display without changing host state. Keep exact financial arithmetic in the application.

View captured React Native example
Range slider rendered in the Expo web renderer Lumen playground
Captured exampleExpo web renderer
tsx
<LumenRangeSlider label="Capacity" value={capacity} onValueChange={setCapacity}
  min={0} max={100} step={10} formatValue={value => String(value) + '%'} />

Reference

Public API

The primary shared and platform-specific options exposed by LumenRangeSlider.

APIValues or typeDefaultDescription
label / value / onValueChangestring / readonly [number, number] / callbackRequiredNames and controls the numeric interval.
min / maxnumber0 / 100Provides valid inclusive bounds.
stepnumberspan / 100Compose counts intermediate stops; Swift and React Native use positive increments.
startLabel / endLabel / formatValuestring / string / (number) => stringMinimum / Maximum / numeric textLocalizes both endpoint names and values.
enabled / readOnlybooleanEnabled / editableBlocks adjustment while retaining values.
———Reports the end of native adjustment.
styleStyleProp<ViewStyle>NoneApplies control layout.

Native behavior

Design and accessibility

When to use it

Bounds must be finite, increasing, and have a finite span. Nonfinite values fall back to bounds; reversed endpoints reorder for display without changing host state. Keep exact financial arithmetic in the application.

Accessibility

Exposes separately named lower and upper native thumbs with formatted spoken values and keyboard adjustment.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives