1.1.6 • Published 11 months ago

@types/react-native-wheel-pick v1.1.6

Weekly downloads
56
License
MIT
Repository
github
Last release
11 months ago

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

// Type definitions for react-native-wheel-pick 1.1
// Project: https://github.com/TronNatthakorn/react-native-wheel-pick#readme
// Definitions by: seongjoojin <https://github.com/seongjoojin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

import * as React from 'react';
import { StyleProp, ViewStyle, ViewProps } 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.

1.1.6

11 months ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago