Skip to content

Commit

Permalink
Change isRTL and testIDPrefix to optional props
Browse files Browse the repository at this point in the history
  • Loading branch information
kantorm authored and Damian Sznajder committed Nov 4, 2019
1 parent 7e54ff0 commit 52236cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ type Props = TextInputProps & {
handleChange: (otpCode: string) => void;
inputContainerStyles?: StyleProp<ViewStyle>;
inputStyles?: StyleProp<TextStyle>;
isRTL: boolean;
isRTL?: boolean;
numberOfInputs: number;
testIDPrefix: string;
testIDPrefix?: string;
};

const ACTION_TYPES: ActionTypes = {
Expand Down Expand Up @@ -93,7 +93,7 @@ const OtpInputs = forwardRef<OtpInputsRef, Props>(
secureTextEntry,
selectTextOnFocus,
style,
testIDPrefix,
testIDPrefix = 'otpInput',
...restProps
},
ref,
Expand Down

0 comments on commit 52236cd

Please sign in to comment.