Socket
Socket
Sign inDemoInstall

@miidx/rn-simple-date-time-picker

Package Overview
Dependencies
4
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @miidx/rn-simple-date-time-picker

Date time picker for ios and android


Version published
Weekly downloads
13
increased by1200%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

rn-simple-date-time-picker

Usage

    <SimpleDateTimePicker  
        animationType="fade"
        label="Due Time"
        onDateSelected={(value) => this.setState({ dueTime: value }) }
    />

Properties

NameDescriptionTypeRequiredDefault Value
animationTypeAnimation type when opening drop down. fade or sliede (IOS Only)Stringfade
labelPicker labelString
errorError message to be shownString
disabledSet the control to disabled modebooleanfalse
cancelCaptionCaption for cancel buttonStringCancel
okCaptionCaption for OK buttonStringOK
enabledColorColor for the control when in enabled modeString#2f2f2f
disabledColorColor for the control when in disabled modeString#8C8C8C
formatFormat to display selected date/time. See moment.js formatStringISO 8601 format
modedate or datetimeStringdatetime
selectedDateSet selected date/time value in ISO 8601 formatstring
initialDateSelectionWhen selectedDate is empty and user tap the control, pre-selected date/time will be set to this props. The date/time value is in ISO 8601 formatstring
onDateTimeSelectedCallback when user select a date/timefunction

FAQs

Last updated on 26 Dec 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc