Calendar

A custom calendar component for date selection with support for date, month, and year views, animations, and min/max date ranges.

Usage

import { Calendar } from '@smartacteam/react-native-ui';
<Calendar
  value={new Date()}
  onChange={(val) => console.log(val)}
/>

Example

Preview

Props

NameTypeRequiredDescription
valueDateNoCurrently selected date. If not set, defaults to today.
endValueDateNoValue of end date of your range (in case you’re using range).
rangebooleanNoIf you’re using range date-picker.
monthOnlybooleanNoDefault is false, use for month picker (MM/YYYY).
onChange(val: Date, endVal?: Date) => voidYesCallback function when a new date is selected. Or if range is changed
minDateDateNoMinimum selectable date. Used for limiting available years/months.
maxDateDateNoMaximum selectable date. Used for limiting available years/months.
(…)(Inherited)Props from BaseSmacStyling, ViewProps.

See BaseSmacStyling and React Native View Props for inherited options.


Features

  • 📅 Full Month View: Renders complete calendar grid including overflow from previous/next months.
  • 🎯 Select Modes: Switch between date, month, and year selection.
  • 🎨 Themed Styling: Fully integrates with your custom theme.
  • 🚫 Min/Max Dates: Supports limiting selectable dates.