diff --git a/src/components/TextInput/BaseTextInput/types.ts b/src/components/TextInput/BaseTextInput/types.ts index 37dcb0de8f31..2b8264af815b 100644 --- a/src/components/TextInput/BaseTextInput/types.ts +++ b/src/components/TextInput/BaseTextInput/types.ts @@ -1,9 +1,8 @@ -import React from 'react'; import type {Component, ForwardedRef} from 'react'; import type {GestureResponderEvent, StyleProp, TextInputProps, TextStyle, ViewStyle} from 'react-native'; import type {AnimatedProps} from 'react-native-reanimated'; -import type {SrcProps} from '@components/Icon'; import type {MaybePhraseKey} from '@libs/Localize'; +import IconAsset from '@src/types/utils/IconAsset'; type CustomBaseTextInputProps = { /** Input label */ @@ -25,7 +24,7 @@ type CustomBaseTextInputProps = { errorText?: MaybePhraseKey; /** Icon to display in right side of text input */ - icon: ((props: SrcProps) => React.ReactNode) | null; + icon: IconAsset | null; /** Customize the TextInput container */ textInputContainerStyles?: StyleProp;