thegamenicorus / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
395 stars 449 forks source link

Input not displaying dialling code and auto-formatting not working #125

Open ncuthbert opened 4 years ago

ncuthbert commented 4 years ago

Issue

Workaround Downgraded to v0.2.2 and it is working as expected

necipallef commented 4 years ago

I confirm that downgrading 0.2.2 works. Following commit breaks the autoFormat prop:

https://github.com/thegamenicorus/react-native-phone-input/commit/d05e42260c90a5731309cde37365c68472ceccee

mrinal-roy commented 4 years ago

Do we have to downgrade React-Native too? Mine is RN 0.61.5 and downgraded this package to 0.2.2 (but ^0.2.2) ; however still not working... Ok, checked. It works in 0.2.2 exactly not with ^

Great, Thanks.

GraemeAllanBryce commented 4 years ago

Confirmed this is an issue in 0.2.4. Resolved by running

yarn upgrade react-native-phone-input@0.2.2

This will stop any further updates via yarn (or NPM) and so you should check back on this library for a fix.

chramos commented 4 years ago

version 0.2.2 really works, thank you

schmem55 commented 4 years ago

Hi , I am usign RN 0.59.10 I downgraded to 0.2.2 and when i select the country , stiil the country code not displaying can someone help me?

Edit -- had to reset cache and works perfectly

anmolmalik97 commented 3 years ago

it doesn't work if i'm using a custom TextComponent

MorelSerge commented 3 years ago

Blocking for me, 0.2.2 uses an outdated google-libphonenumber, which lacks several new metadata updates for phone numbers and therefor fails to parse and validate input.

Edit: temporary fix for me by using npm shrinkwrap and/or yarn resolutions to pinpoint the google-libphonenumber version to the newest one.