Skip to main content
161

Search Lumen

Find components, APIs, guides, and recipes.

GitHub
React Native docs
FormsReact Native

Date range field

Select an inclusive native date range with coordinated bounds and validation context.

Public APILumenDateRangeFieldReact Native

Native example

Use Date range field

Use for an inclusive native date range. Keep values controlled and provide product-specific validation copy when additional rules apply.

View verified React Native runtime capture
Date range field rendered in the Expo web renderer Lumen playground
Verified runtime captureExpo web renderer
tsx
<LumenDateRangeField
  label="Release window"
  value={releaseRange}
  onValueChange={setReleaseRange}
  minimumDate={new Date()}
  description="Choose when this release is available."
/>

Reference

Public API

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

APIValues or typeDefaultDescription
labelstringRequiredLabels the inclusive date range.
value / onValueChangeLumenDateRangeValue / callbackRequiredStores the controlled start and end values.
minimumDate / maximumDateDate?undefinedConstrains both dates using the native picker contract.
description / errorMessagestring?undefinedShows supporting text or a semantic danger validation message.

Native behavior

Design and accessibility

When to use it

Use for an inclusive native date range. Keep values controlled and provide product-specific validation copy when additional rules apply.

Accessibility

The range and each native control remain labeled, and selection prevents an end date from preceding its start.

Shared component

Available on other platforms

Apple / SwiftUIAndroid / Compose
React Native docsNative primitives