forked from himelbrand/react-native-numeric-input
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
46 lines (43 loc) · 1.43 KB
/
index.d.ts
File metadata and controls
46 lines (43 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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;
onLimitReached?: (isMax: boolean, msg: string) => void;
editable?: boolean;
validateOnBlur?: boolean;
reachMaxIncIconStyle?: ViewStyle;
reachMaxDecIconStyle?: ViewStyle;
reachMinIncIconStyle?: ViewStyle;
reachMinDecIconStyle?: ViewStyle;
reachMaxIncButtonStyle?: ViewStyle;
reachMinIncButtonStyle?: ViewStyle;
reachMaxDecButtonStyle?: ViewStyle;
reachMinDecButtonStyle?: ViewStyle;
disableDecButtonOnMinReach?: boolean;
disableIncButtonOnMaxReach?: boolean;
extraTextInputProps?: object;
}
export default class NumericInput extends React.Component<INumericInputProps> {}
export const DIMENTIONS: { height: number; width: number };
}