Skip to content

Commit

Permalink
chore: adds testID prop to TextInput
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisTofani committed Mar 1, 2024
1 parent d8940d2 commit 516ecf7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/textInput/TextInputBase.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ import {
} from "../../core";
import { makeFontStyleObject } from "../../utils/fonts";
import { RNTextInputProps, getInputPropsByType } from "../../utils/textInput";
import { InputType } from "../../utils/types";
import { InputType, WithTestID } from "../../utils/types";
import { IOIcons, Icon } from "../icons";
import { HSpacer } from "../spacer";
import { LabelSmall } from "../typography";

type InputStatus = "initial" | "focused" | "disabled" | "error";

type InputTextProps = {
type InputTextProps = WithTestID<{
placeholder: string;
value: string;
onChangeText: (value: string) => void;
Expand All @@ -45,7 +45,7 @@ type InputTextProps = {
isPassword?: boolean;
onBlur?: () => void;
onFocus?: () => void;
};
}>;

const inputMarginTop: IOSpacingScale = 8;

Expand Down

0 comments on commit 516ecf7

Please sign in to comment.