1
- import { ViewStyle } from ' react-native' ;
2
-
1
+ import React from " react" ;
2
+ import { ViewStyle , TextStyle } from "react-native" ;
3
3
4
4
export interface CountryCodeProps {
5
- /**
6
- * Selected Country Dial Code
7
- */
8
- selected : string ,
9
- /**
10
- * Function to set the country
11
- */
12
- setSelected : React . Dispatch < React . SetStateAction < undefined > > ,
13
- /**
14
- * Function to set the country
15
- */
16
- setCountryDetails : React . Dispatch < React . SetStateAction < undefined > > ,
17
- /**
18
- * State variable for storing the phone number
19
- */
20
- phone ?: string ,
21
- /**
22
- * Function to set the phone number state variable
23
- */
24
- setPhone ?: React . Dispatch < React . SetStateAction < undefined > > ,
25
- /**
26
- * Style the Country Code Container
27
- */
28
- countryCodeContainerStyles ?: ViewStyle ,
29
- /**
30
- * Style the text inside Country Code
31
- */
32
- countryCodeTextStyles ?: ViewStyle ,
33
- /**
34
- * Phone Text Input Styles
35
- */
36
- phoneStyles ?: ViewStyle ,
37
- /**
38
- * URL for the search Icon
39
- */
40
- searchIcon ?: string ,
41
- /**
42
- * URL for the close Icon
43
- */
44
- closeIcon ?: string ,
45
- /**
46
- * Search Input Container Styles
47
- */
48
- searchStyles ?: ViewStyle ,
49
- /**
50
- * Search Input Text Styles
51
- */
52
- searchTextStyles ?: ViewStyle ,
53
- /**
54
- * Search Dropdown Container Styles
55
- */
56
- dropdownStyles ?: ViewStyle ,
57
- /**
58
- * Search Dropdown Text Styles
59
- */
60
- dropdownTextStyles ?: ViewStyle
5
+ /**
6
+ * Selected Country Dial Code
7
+ */
8
+ selected : string ;
9
+ /**
10
+ * Function to set the country
11
+ */
12
+ setSelected : React . Dispatch < React . SetStateAction < undefined > > ;
13
+ /**
14
+ * Function to set the country
15
+ */
16
+ setCountryDetails : React . Dispatch < React . SetStateAction < undefined > > ;
17
+ /**
18
+ * State variable for storing the phone number
19
+ */
20
+ phone ?: string ;
21
+ /**
22
+ * Function to set the phone number state variable
23
+ */
24
+ setPhone ?: React . Dispatch < React . SetStateAction < undefined > > ;
25
+ /**
26
+ * Style the Country Code Container
27
+ */
28
+ countryCodeContainerStyles ?: ViewStyle ;
29
+ /**
30
+ * Style the text inside Country Code
31
+ */
32
+ countryCodeTextStyles ?: TextStyle ;
33
+ /**
34
+ * Phone Text Input Styles
35
+ */
36
+ phoneStyles ?: ViewStyle ;
37
+ /**
38
+ * URL for the search Icon
39
+ */
40
+ searchIcon ?: string ;
41
+ /**
42
+ * URL for the close Icon
43
+ */
44
+ closeIcon ?: string ;
45
+ /**
46
+ * Search Input Container Styles
47
+ */
48
+ searchStyles ?: ViewStyle ;
49
+ /**
50
+ * Search Input Text Styles
51
+ */
52
+ searchTextStyles ?: TextStyle ;
53
+ /**
54
+ * Search Dropdown Container Styles
55
+ */
56
+ dropdownStyles ?: ViewStyle ;
57
+ /**
58
+ * Search Dropdown Text Styles
59
+ */
60
+ dropdownTextStyles ?: TextStyle ;
61
+ /**
62
+ * Search Dropdown List Item Styles
63
+ */
64
+ dropdownTextContainerStyles ?: ViewStyle ;
65
+ }
61
66
62
- }
67
+ export interface CountryCodeDropdownItemProps {
68
+ name : string ;
69
+ dial_code : string ;
70
+ code : string ;
71
+ flag : string ;
72
+ }
0 commit comments