@types/react-native-modern-datepicker

@types/react-native-modern-datepicker JS library on GitHub @types/react-native-modern-datepicker JS library on npm Download @types/react-native-modern-datepicker JS library

TypeScript definitions for react-native-modern-datepicker

Version 1.0.5 License MIT
@types/react-native-modern-datepicker has no homepage
@types/react-native-modern-datepicker JS library on GitHub
@types/react-native-modern-datepicker JS library on npm
Download @types/react-native-modern-datepicker JS library
<script type="module"> import typesreactNativeModernDatepicker from 'https://cdn.jsdelivr.net/npm/@types/react-native-modern-datepicker@1.0.5/+esm' </script>
Learn more

Installation

npm install --save @types/react-native-modern-datepicker

Summary

This package contains type definitions for react-native-modern-datepicker (https://github.com/HosseinShabani/react-native-modern-datepicker#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-modern-datepicker.

index.d.ts

import { CSSProperties, JSX } from "react";

export interface ModernDatepickerProps {
    onSelectedChange?: (dateString: string) => void;
    onMonthYearChange?: (dateString: string) => void;
    onTimeChange?: (dateString: string) => void;
    onDateChange?: (dateString: string) => void;
    minimumDate?: string;
    maximumDate?: string;
    selectorStartingYear?: number;
    selectorEndingYear?: number;
    disableDateChange?: boolean;
    isGregorian?: boolean;
    mode?: "datepicker" | "calendar" | "monthYear" | "time";
    minuteInterval?: 1 | 2 | 3 | 4 | 5 | 6 | 10 | 12 | 15 | 20 | 30 | 60;
    style?: CSSProperties;
    current?: string;
    selected?: string;
    locale?: string;
    options?: {
        backgroundColor?: string;
        textHeaderColor?: string;
        textDefaultColor?: string;
        selectedTextColor?: string;
        mainColor?: string;
        textSecondaryColor?: string;
        borderColor?: string;
        defaultFont?: string;
        headerFont?: string;
        textFontSize?: number;
        textHeaderFontSize?: number;
        headerAnimationDistance?: number;
        daysAnimationDistance?: number;
    };
}

export default function(props: ModernDatepickerProps): JSX.Element;
export function getToday(): string;
export function getFormatedDate(date?: Date, format?: string): string;

Additional Details

  • Last updated: Wed, 06 Dec 2023 06:36:35 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Ankan002.