Skip to content

Commit

Permalink
Merge pull request #192 from lad-tech/feat/163-leftIcon
Browse files Browse the repository at this point in the history
feat: add leftIcon for InputField #163
  • Loading branch information
Bibazavr authored Apr 2, 2024
2 parents a26f010 + 2417830 commit 200a3df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/core/src/inputs/components/InputField/InputField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const InputField = forwardRef<ITextInput, IInputFieldsProps>((props, ref) => {
style,
title,
subtitle,
leftIcon,
rightIcon,
type = IInputsTypes.default,
disabled = false,
Expand Down Expand Up @@ -105,6 +106,7 @@ const InputField = forwardRef<ITextInput, IInputFieldsProps>((props, ref) => {
getPadding(),
textInputContainerStyle,
]}>
{leftIcon}
<TextInput
ref={ref}
testID={Constants.testID}
Expand Down
1 change: 1 addition & 0 deletions packages/core/src/inputs/components/InputField/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface IInputFieldsProps extends ITextInputProps {
subtitleProps?: IStyledTextProps;
containerStyle?: StyleProp<ViewStyle>;
textInputContainerStyle?: StyleProp<ViewStyle>;
leftIcon?: ReactElement;
rightIcon?: ReactElement;
type?: IInputsTypes;
disabled?: boolean;
Expand Down

0 comments on commit 200a3df

Please sign in to comment.