UNPKG

react-native-ui-lib

Version:

<p align="center"> <img src="https://user-images.githubusercontent.com/1780255/105469025-56759000-5ca0-11eb-993d-3568c1fd54f4.png" height="250px" style="display:block"/> </p> <p align="center">UI Toolset & Components Library for React Native</p> <p a

30 lines (22 loc) 815 B
import {Component} from 'react'; import {StyleProp, TextStyle, ViewStyle} from 'react-native'; import {ColorValue} from '../style/colors'; export type WheelPickerItemValue = string | number; export interface WheelPickerItemProps { value?: WheelPickerItemValue; label?: string; } export type WheelPickerOnValueChange = (value: WheelPickerItemValue, index: number) => void; export interface WheelPickerProps { selectedValue?: WheelPickerItemValue; onValueChange?: WheelPickerOnValueChange; style?: StyleProp<ViewStyle>; labelStyle?: StyleProp<TextStyle>; itemHeight?: number; color?: ColorValue; itemStyle?: StyleProp<ViewStyle>; } export class WheelPicker extends Component<WheelPickerProps> {} export namespace WheelPicker { export class Item extends Component<WheelPickerItemProps> {} }