Skip to content

Commit 52236cd

Browse files
kantormDamian Sznajder
authored andcommitted
Change isRTL and testIDPrefix to optional props
1 parent 7e54ff0 commit 52236cd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ type Props = TextInputProps & {
3131
handleChange: (otpCode: string) => void;
3232
inputContainerStyles?: StyleProp<ViewStyle>;
3333
inputStyles?: StyleProp<TextStyle>;
34-
isRTL: boolean;
34+
isRTL?: boolean;
3535
numberOfInputs: number;
36-
testIDPrefix: string;
36+
testIDPrefix?: string;
3737
};
3838

3939
const ACTION_TYPES: ActionTypes = {
@@ -93,7 +93,7 @@ const OtpInputs = forwardRef<OtpInputsRef, Props>(
9393
secureTextEntry,
9494
selectTextOnFocus,
9595
style,
96-
testIDPrefix,
96+
testIDPrefix = 'otpInput',
9797
...restProps
9898
},
9999
ref,

0 commit comments

Comments
 (0)