Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2
ReScript bindings for @react-native-community/datetimepicker
License
rescript-react-native/datetimepicker
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
ReScript bindings for@react-native-community/datetimepicker.
Exposed as theReactNativeDateTimePicker module.
Version x.y.z of@rescript-react-native/datetimepicker is intended to becompatible with version x.y.z of@react-native-community/datetimepicker.
When@react-native-community/datetimepickeris properly installed & configured by following their installation instructions,you can install the bindings:
npm install @rescript-react-native/datetimepicker#oryarn add @rescript-react-native/datetimepicker
@rescript-react-native/datetimepicker should be added tobs-dependencies inyourbsconfig.json. For example,
{ //... "bs-dependencies": [ "@rescript/react", "rescript-react-native", // ...+ "@rescript-react-native/datetimepicker" ], //...}Refer todocumentationfor valid values.
AssumingpickerEvent isPickerEvent.t, you can access
pickerEvent.nativeEvent.target// => option(int)pickerEvent.nativeEvent.timestamp// => int
Note thattarget is undefined on Android.
All props other thanvalue are optional.
required
Current value for time and date.
Latest date that can be selected. For examplemaximumDate = Js.Date.makeWithYMD(2020., 10., 15., ()). Note that months arenumbered from0.
Earliest date that can be selected. For exampleminimumDate = Js.Date.makeWithYMD(2015., 0., 18., ()). Note that months arenumbered from0.
Type of the picker. Note that
`dateis the default`datetimeand`countdownare iOS only
Android only
How the picker is displayed. Note that
- `calendar is only for
mode=`date - `clock is only for
mode=`time
pickerEventhas keysnativeEventon both platforms and also_typeonAndroid.Android:
_typekey takes value"set"(when the dialog is closed via"OK") or"dismissed"(when the dialog is closed via "cancel").
iOS only
Allows changing time zone of the date picker. By default device's time zone isused. As an example, set to60 for GMT+1.
iOS only
Allows changing locale of the component. By default device's locale is used.
Refer todocumentationfor valid values.
Android only.
Allows changing of the time picker to a 24 hour format. Default is false.
iOS only.
Interval at which minutes can be selected. Polymorphic constructors are renderedto string (that is`_3 becomes"3").
Check thechangelog for more information about recentreleases.
Read thecontribution guidelines before contributing.
We want this community to be friendly and respectful to each other. Please readour full code of conduct so that you can understand whatactions will and will not be tolerated.
About
ReScript bindings for @react-native-community/datetimepicker
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.