import type { PickerItemProps } from '@react-native-picker/picker' ; import countries from './countries.json' ; type LabelsMap = Readonly < { [ s ] : string ; } > ; type SelectOption = PickerItemProps & { disabled ? : boolean ; } ; type SelectItems = Readonly < Array < SelectOption > > ; export const NATIONALITY_LABELS = countries . reduce ( ( soFar , country ) => { soFar [ country . code . toLowerCase ( ) ] = country . nationality ; return soFar ; } , { } ) ; export const NATIONALITY_SELECT_ITEMS = countries . map ( ( country ) => ( { label : country . nationality , value : country . code . toLowerCase ( ) } ) ) ;