@types/react-native-wheel-pick
TypeScript icon, indicating that this package has built-in type declarations

1.1.6 • Public • Published

Installation

npm install --save @types/react-native-wheel-pick

Summary

This package contains type definitions for react-native-wheel-pick (https://github.com/TronNatthakorn/react-native-wheel-pick#readme).

Details

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

index.d.ts

import * as React from "react";
import { StyleProp, ViewProps, ViewStyle } from "react-native";

export interface DatePickerIOSProps extends ViewProps {
    date?: Date | undefined;
    maximumDate?: Date | undefined;
    minimumDate?: Date | undefined;
    mode?: "date" | "time" | "datetime" | undefined;
    onDateChange: (newDate: Date) => void;
}

export interface DatePickerAndroidProps extends ViewProps {
    labelUnit?: {
        year?: string | undefined;
        month?: string[] | undefined;
        date?: string | undefined;
    } | undefined;
    order?: string | undefined;
    date?: Date | undefined;
    maximumDate?: Date | undefined;
    minimumDate?: Date | undefined;
    mode?: "date" | "time" | "datetime" | undefined;
    onDateChange: (newDate: Date) => void;
    style?: StyleProp<ViewStyle> | undefined;
    textColor?: string | undefined;
    textSize?: number | undefined;
    itemSpace?: number | undefined;
}

export interface DatePickerProps extends DatePickerAndroidProps, DatePickerIOSProps {
    date?: Date | undefined;
    maximumDate?: Date | undefined;
    minimumDate?: Date | undefined;
    mode?: "date" | "time" | "datetime" | undefined;
    onDateChange: (newDate: Date) => void;
    style?: StyleProp<ViewStyle> | undefined;
}

export interface PickerProps<T> extends ViewProps {
    textColor?: string | undefined;
    textSize?: number | undefined;
    itemSpace?: number | undefined;
    itemStyle?: StyleProp<ViewStyle> | undefined;
    onValueChange: (value: T) => void;
    pickerData: T[];
    style?: StyleProp<ViewStyle> | undefined;
    selectedValue?: T | undefined;
}

export class Picker<T> extends React.Component<PickerProps<T>> {}
export class DatePicker extends React.PureComponent<DatePickerProps> {}

Additional Details

Credits

These definitions were written by seongjoojin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-native-wheel-pick

Weekly Downloads

824

Version

1.1.6

License

MIT

Unpacked Size

6.38 kB

Total Files

5

Last publish

Collaborators

  • types