diff --git a/src/components/AmountTextInput.tsx b/src/components/AmountTextInput.tsx index 0f3416076cc0..a204f14c83f5 100644 --- a/src/components/AmountTextInput.tsx +++ b/src/components/AmountTextInput.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import type {StyleProp, TextStyle, ViewStyle} from 'react-native'; +import type {NativeSyntheticEvent, StyleProp, TextInputSelectionChangeEventData, TextStyle, ViewStyle} from 'react-native'; import useThemeStyles from '@hooks/useThemeStyles'; import CONST from '@src/CONST'; import type {TextSelection} from './Composer/types'; @@ -20,7 +20,7 @@ type AmountTextInputProps = { selection?: TextSelection; /** Function to call when selection in text input is changed */ - onSelectionChange?: () => void; + onSelectionChange?: (event: NativeSyntheticEvent) => void; /** Style for the input */ style?: StyleProp; diff --git a/src/components/TextInputWithCurrencySymbol/BaseTextInputWithCurrencySymbol.tsx b/src/components/TextInputWithCurrencySymbol/BaseTextInputWithCurrencySymbol.tsx index 51c4ecfd00b1..6c19c4867492 100644 --- a/src/components/TextInputWithCurrencySymbol/BaseTextInputWithCurrencySymbol.tsx +++ b/src/components/TextInputWithCurrencySymbol/BaseTextInputWithCurrencySymbol.tsx @@ -43,7 +43,6 @@ function BaseTextInputWithCurrencySymbol( const amountTextInput = ( ) => void;