React NativeScript

React NativeScript

  • Docs

›ELEMENTS: COMPONENTS

INTRODUCTION

  • Introduction

GETTING STARTED

  • Quick Start
  • Environment Setup
  • Using React Devtools

CORE CONCEPTS

  • Native Access
  • Navigation
  • Node Roles
  • Modals
  • Plugins
  • Styling

SAMPLES

  • Apps

ELEMENTS: LAYOUT

  • AbsoluteLayout
  • DockLayout
  • FlexboxLayout
  • GridLayout
  • StackLayout
  • WrapLayout

ELEMENTS: COMPONENTS

  • ActivityIndicator
  • ActionBar
  • ActionItem
  • Button
  • DatePicker
  • Frame
  • HtmlView
  • Image
  • Label
  • ListView
  • ListPicker
  • NavigationButton
  • Page
  • Placeholder
  • Progress
  • ScrollView
  • SearchBar
  • SegmentedBar
  • Slider
  • Switch
  • TabView
  • TabViewItem
  • TextField
  • TextView
  • TimePicker
  • WebView

LICENCES

  • Licences
Edit

DatePicker

<datePicker> is a UI component that lets users select a date from a pre-configured range.

See also:

  • Official top-level documentation
  • Detailed API specification
  • <timePicker>

import * as React from "react";
import { EventData } from "@nativescript/core";

<datePicker
  date={new Date()}
  onDateChange={(args: EventData) => {
    const datePicker = args.object;
  }}
/>

Props

NameTypeDescription
dateDateSets the complete date.
minDateDateSets the earliest possible date to select.
maxDateDateSets the latest possible date to select.
daynumberSets the day.
monthnumberSets the month.
yearnumberSets the year.

Events

NameDescription
dateChangeEmitted when the selected date changes.

Native component

AndroidiOS
android.widget.DatePickerUIDatePicker
Last updated by Jamie Birch
← ButtonFrame →
  • Props
  • Events
  • Native component
React NativeScript
Docs
Getting StartedUI Components Reference
Community
Stack OverflowChat on Slack in #reactTwitter
More
GitHub – React NativeScriptGitHub – Docs Site
Copyright © 2021 Jamie Birch