Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ncuthbert opened this issue Nov 4, 2019 · 7 comments
Open

Comments

@ncuthbert
Copy link

ncuthbert commented Nov 4, 2019

Issue

  • Issue is happening in v0.2.4
  • Text input is blank (no dialling code displayed, only flag)
  • Country is set but dialling code is never displayed in the text field
  • Can enter text but auto-formatting is not working
  • Input will still auto-detect country though
  • Country picker is working and updates flag but still no dialling code

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

@necipallef
Copy link

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

d05e422

@mrinal-roy
Copy link

mrinal-roy commented Dec 27, 2019

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
Copy link

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
Copy link

chramos commented Feb 28, 2020

version 0.2.2 really works, thank you

@schmem55
Copy link

schmem55 commented May 17, 2020

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
Copy link

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

@MorelSerge
Copy link

MorelSerge commented Jan 29, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants