UNPKG

diva-mobile-numeric-input

Version:
42 lines (38 loc) 1.29 kB
declare module "react-native-numeric-input" { import { ViewStyle } from "react-native"; import { Color } from "csstype"; export interface INumericInputProps { value?: number; minValue?: number; maxValue?: number; step?: number; valueType?: "integer" | "real"; initValue?: number; iconSize?: number; borderColor?: Color; iconStyle?: ViewStyle; totalWidth?: number; separatorWidth?: number; type?: "plus-minus" | "up-down"; rounded?: boolean; textColor?: Color; containerStyle?: ViewStyle; inputStyle?: ViewStyle; upDownButtonsBackgroundColor?: Color; rightButtonBackgroundColor?: Color; leftButtonBackgroundColor?: Color; totalHeight?: number; onChange: (value: number) => void; leadingCallback: Function; onLimitReached?: (isMax: boolean, msg: string) => void; editable?: boolean; validateOnBlur?: boolean; reachMaxIncIconStyle?: ViewStyle; reachMaxDecIconStyle?: ViewStyle; reachMinIncIconStyle?: ViewStyle; reachMinDecIconStyle?: ViewStyle; extraTextInputProps?: object; } export default class NumericInput extends React.Component<INumericInputProps> {} export const DIMENTIONS: { height: number; width: number }; }