Skip to content

Commit 129278c

Browse files
committed
refactor: additional export types
- make `countryPickerProps` optional
1 parent 9f8953c commit 129278c

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/PhoneInput/PhoneInput.types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ export type PhoneInputProps = {
3030
renderCustomDropdown?: JSX.Element;
3131
theme?: Theme;
3232
maskInputProps?: MaskInputProps;
33-
countryPickerProps?: Parameters<typeof CountryPicker>[0];
33+
countryPickerProps?: Partial<Parameters<typeof CountryPicker>[0]>;
3434
flagProps?: Parameters<typeof Flag>[0];
3535
isCallingCodeEditable?: boolean;
3636
dropDownImageProps?: ImageProps;
3737
};
38+
3839
interface Theme {
3940
containerStyle?: StyleProp<ViewStyle>;
4041
textInputStyle?: StyleProp<TextStyle>;

src/PhoneInput/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ export { PhoneInput } from './PhoneInput';
77
export { isValidNumber } from './utils';
88

99
export type { PhoneInputProps } from './PhoneInput.types';
10+
11+
export type {
12+
CallingCode,
13+
CountryCode,
14+
} from 'react-native-country-picker-modal';

0 commit comments

Comments
 (0)