-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
59 lines (48 loc) · 1.9 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
import { ICountries } from 'react-native-phonecode-picker/src/resources/countries';
import { IFlags } from 'react-native-phonecode-picker/src/resources/flags';
import React, { FC } from 'react';
import { Text, TextInputProps, View, StyleSheet, Image, ViewStyle, TextStyle, ColorValue, ImageStyle, TouchableOpacity, TextInput, FlatListProps } from 'react-native';
declare module 'react-native-phonecode-picker' {
interface PhoneSearchProps extends TextInputProps {
value: string;
onChangeText: (text: string) => void;
containerStyle?: ViewStyle;
iconColor?: string;
};
export function PhoneSearch(props: PhoneSearchProps): JSX.Element;
interface PhoneListProps extends Omit<Omit<FlatListProps<Country>, 'data'>, 'renderItem'> {
language: Language;
onPress: (country: Country) => void;
containerStyle?: object;
itemContainerStyle?: object;
textStyle?: object;
filter?: string;
};
export function PhoneList(props: PhoneListProps): JSX.Element;
interface PhoneItemProps {
country: Country;
flag: any;
onPress: (country: Country) => void;
itemContainerStyle?: object;
textStyle?: object;
};
export function PhoneItem(props: PhoneItemProps): JSX.Element;
interface PhoneInputProps extends TextInputProps {
country: Country;
onPress: () => void;
value: string;
onChangeText: (value: string) => void;
styleComponent?: {
container?: ViewStyle,
flag?: ImageStyle;
textInput?: TextStyle,
textCode?: TextStyle,
phoneCodeContainer?: ViewStyle,
placeholderTextColor?: ColorValue,
};
showFlag?: boolean;
};
export function PhoneInput(props: PhoneInputProps): JSX.Element;
export const FlagsApi: IFlags;
export const CountriesApi: ICountries;
};