Skip to content

Commit 4237663

Browse files
authored
Merge pull request ttdung11t2#2 from PaitoAnderson/patch-1
Added TypeScript Typings
2 parents 8bf2d20 + a1181fc commit 4237663

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

index.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import * as React from "react";
2+
import * as ReactNative from "react-native";
3+
4+
declare module "react-native-confirmation-code-input" {
5+
6+
type InputPositions = 'left' | 'right' | 'center' | 'full-width';
7+
type ClassNames = 'border-box' | 'border-circle' | 'border-b' | 'border-b-t' | 'border-l-r';
8+
9+
interface CodeInputProps extends ReactNative.TextInputProperties {
10+
codeLength?: number;
11+
compareWithCode?: string;
12+
inputPosition?: InputPositions;
13+
size?: number;
14+
space?: number;
15+
className?: ClassNames;
16+
cellBorderWidth?: number;
17+
activeColor?: string;
18+
inactiveColor?: string;
19+
ignoreCase?: boolean;
20+
codeInputStyle?: any,
21+
containerStyle?: any;
22+
onFulfill: Function;
23+
}
24+
25+
export default class CodeInput extends React.Component<CodeInputProps, any> { }
26+
}

0 commit comments

Comments
 (0)