xcarpentier / react-native-country-picker-modal

πŸ‡¦πŸ‡Ά Country picker provides a modal allowing a user to select a country from a list. It display a flag next to each country name.
https://reactnative.gallery/xcarpentier/country-picker
MIT License
1.06k stars 791 forks source link

Type TranslationLanguageCodeList is missing countries #464

Open loiclouvet opened 2 years ago

loiclouvet commented 2 years ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch react-native-country-picker-modal@2.0.0 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-country-picker-modal/lib/types.d.ts b/node_modules/react-native-country-picker-modal/lib/types.d.ts
index 420b1d0..dc8a9e4 100644
--- a/node_modules/react-native-country-picker-modal/lib/types.d.ts
+++ b/node_modules/react-native-country-picker-modal/lib/types.d.ts
@@ -18,7 +18,7 @@ export declare const RegionList: readonly ["Africa", "Americas", "Antarctic", "A
 export declare type Region = typeof RegionList[number];
 export declare const SubregionList: readonly ["Southern Asia", "Southern Europe", "Northern Africa", "Polynesia", "Middle Africa", "Caribbean", "South America", "Western Asia", "Australia and New Zealand", "Western Europe", "Eastern Europe", "Central America", "Western Africa", "North America", "Southern Africa", "Eastern Africa", "South-Eastern Asia", "Eastern Asia", "Northern Europe", "Melanesia", "Micronesia", "Central Asia", "Central Europe"];
 export declare type Subregion = typeof SubregionList[number];
-export declare const TranslationLanguageCodeList: readonly ["common", "cym", "deu", "fra", "hrv", "ita", "jpn", "nld", "por", "rus", "spa", "svk", "fin", "zho", "isr"];
+export declare const TranslationLanguageCodeList: readonly ["common", "cym", "deu", "fra", "hrv", "ita", "jpn", "nld", "por", "rus", "spa", "svk", "fin", "zho", "isr", "ces", "slk", "est", "pol", "urd", "kor"];
 export declare type TranslationLanguageCode = typeof TranslationLanguageCodeList[number];
 export declare enum FlagType {
     FLAT = "flat",

This issue body was partially generated by patch-package.

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.