react-native-international-phone-number 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/index.js +1 -1
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -201,7 +201,7 @@ const PhoneInput = forwardRef(
201
201
  );
202
202
  }
203
203
  } else {
204
- if (!countryValue) {
204
+ if (!countryValue && !defaultCountry) {
205
205
  const defaultCountry = getCountryByCca2('BR');
206
206
 
207
207
  if (ref) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react-native-international-phone-number",
3
3
  "author": "AstrOOnauta (https://github.com/AstrOOnauta)",
4
- "version": "0.5.0",
4
+ "version": "0.5.1",
5
5
  "description": "International mobile phone input component with mask for React Native",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",