diff --git a/index.tsx b/index.tsx index da5b226..5e0052c 100644 --- a/index.tsx +++ b/index.tsx @@ -437,9 +437,11 @@ export const CountryList = ({ }; -type StyleKeys = 'container' | 'modal' | 'modalInner' | 'searchBar' | 'countryMessage' | 'line'; +type ViewStyleKeys = 'container' | 'modal' | 'modalInner' | 'countryMessage' | 'line'; +type TextStyleKeys = 'searchBar'; +type StylesType = { [key in ViewStyleKeys]: ViewStyle } & { [key in TextStyleKeys]: TextStyle }; -const styles: { [key in StyleKeys]: ViewStyle } = { +const styles: StylesType = { container: { flex: 1, position: 'absolute',