import { FormatOptions } from 'currency-formatter'; import { TextInputProps } from 'react-native'; export interface CurrencyInputProps extends Omit, Omit { /** * * Function to render the custom text input component. * This plugin will use the default TextInput component if this prop is not provided. * */ renderTextInput?: (props: TextInputProps) => JSX.Element; /** * * Callback function that is called when the value of the input changes. * */ onChangeValue?: (value: number) => void; /** * * The currency code that will passed to currency-formatter plugin to use for formatting the currency. * */ currency?: string; /** * * The number value of the input. * IMPORTANT: This is used to control the component, but keep in mind that this is not the final `value` property of the `TextInput` * */ value?: number; }