Skip to content

Commit b1e2bdd

Browse files
committed
Add correct typing for text styles
1 parent 2adea65 commit b1e2bdd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

index.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
TextInput,
1010
Image,
1111
ViewStyle,
12+
TextStyle,
1213
} from "react-native";
1314
import { countries, _getFlag } from "./_inc/_lib/enhanced";
1415

@@ -40,7 +41,7 @@ interface CountryCodeProps {
4041
/**
4142
* Style the text inside Country Code
4243
*/
43-
countryCodeTextStyles?: ViewStyle;
44+
countryCodeTextStyles?: TextStyle;
4445
/**
4546
* Phone Text Input Styles
4647
*/
@@ -60,7 +61,7 @@ interface CountryCodeProps {
6061
/**
6162
* Search Input Text Styles
6263
*/
63-
searchTextStyles?: ViewStyle;
64+
searchTextStyles?: TextStyle;
6465
/**
6566
/**
6667
* Search Dropdown Container Styles
@@ -69,7 +70,7 @@ interface CountryCodeProps {
6970
/**
7071
* Search Dropdown Text Styles
7172
*/
72-
dropdownTextStyles?: ViewStyle;
73+
dropdownTextStyles?: TextStyle;
7374
/**
7475
* Search Dropdown Text Container Styles
7576
*/
@@ -91,6 +92,7 @@ const CountryCodeDropdownPicker: React.FC<CountryCodeProps> = ({
9192
searchTextStyles = {},
9293
dropdownStyles = {},
9394
dropdownTextStyles = {},
95+
dropdownTextContainerStyles = {},
9496
}) => {
9597
const [_selected, _setSelected] = React.useState(false);
9698
const [_search, _setSearch] = React.useState("");

0 commit comments

Comments
 (0)