1.1.6 • Published 5 months ago

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

Weekly downloads
56
License
MIT
Repository
github
Last release
5 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

5 months ago

1.1.5

6 months ago

1.1.4

7 months ago

1.1.3

8 months ago

1.1.2

3 years ago

1.1.1

4 years ago

1.1.0

4 years ago