Module DatePickerAndroid-BsReactNative

type response = {
year: int,
month: int,
day: int,
};

Opens the standard Android date picker dialog.

You can read more on DatePickerAndroid API usage in official docs: https://facebook.github.io/react-native/docs/datepickerandroid

Types

response
type response = {
  year: int,
  month: int,
  day: int,
};
action
type action =
| Dismissed
| Set(response);
mode
type mode = [ | `calendar | `spinner | `default];

Methods

open
let open_:
  (
    ~date: Js.Date.t,
    ~minDate: Js.Date.t=?,
    ~maxDate: Js.Date.t=?,
    ~mode: mode=?,
    unit
  ) =>
  Js.Promise.t(action);
type action =
| Dismissed
| Set(response)
;
type mode = [
| `calendar
| `spinner
| `default
];
let open_: date:Js.Date.t => ?⁠minDate:Js.Date.t => ?⁠maxDate:Js.Date.t => ?⁠mode:mode => unit => Js.Promise.t(action);