import type { TextInput as NativeTextInput, StyleProp, ViewStyle } from 'react-native'; import type { TextInputProps } from 'react-native-paper'; export type $DeepPartial = { [P in keyof T]?: $DeepPartial }; export type RNPaperTextInputRef = Pick< NativeTextInput, 'focus' | 'clear' | 'blur' | 'isFocused' | 'setNativeProps' >; export interface PhoneNumberInputRef extends RNPaperTextInputRef { openCountryPicker: () => void; closeCountryPicker: () => void; } export interface PhoneNumberInputProps extends Omit { code?: string; setCode: React.Dispatch>; phoneNumber?: string; setPhoneNumber: React.Dispatch>; showFirstOnList?: string[]; includeCountries?: string[]; excludeCountries?: string[]; limitMaxLength?: boolean; modalStyle?: StyleProp; modalContainerStyle?: StyleProp; } export interface CountryPickerRef { openCountryPicker: () => void; closeCountryPicker: () => void; } export interface CountryPickerProps extends Omit { country?: string; setCountry: React.Dispatch>; includeCountries?: string[]; excludeCountries?: string[]; showFirstOnList?: string[]; modalStyle?: StyleProp; modalContainerStyle?: StyleProp; }