question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Country Code Netherlands Antilles 'AN' Not Working

See original GitHub issue

First - thank you for this component. Very impressive and very helpful. I believe a country code is missing but I am unable to find where in the code the culprit might be. Setting the props - country, countries, and countryOptions to ’ AN’ the component fails to render a flag and in general causes other issues. Here is the component declaration for reference:

                        ```

<PhoneInput value={this.getCellPhone()} id=‘input-cell’
name=‘input-cell’ ref=‘cellPhone’ international={false} countries={[‘AN’]} countryOptions={[‘AN’]} country={‘AN’} onChange={this.phoneInputChange.bind(this)} />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
brpsmithcommented, Sep 6, 2018

Will do - thank you for your help.

0reactions
catamphetaminecommented, Sep 7, 2018

Released react-phone-number-input@2.2.3 which throws if country is not found in metadata.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Netherlands Antilles dissolved as per 10-10-10, how to ...
The Netherlands Antilles were officially assigned the ISO 3166-1 alpha-2 code AN before it was dissolved into five separate territories in 2010, ...
Read more >
Netherlands Antilles Country Code +599
This page details Netherlands Antilles phone code. The Netherlands Antilles country code 599 will allow you to call Netherlands Antilles from another country....
Read more >
AN - Netherlands Antilles
The Netherlands Antilles was divided into Bonaire, Saint Eustatius and Saba (BQ, BES, 535), Curaçao (CW, CUW, 531) and Sint Maarten (Dutch part)...
Read more >
Telephone numbers in Curaçao and the Caribbean ...
The country code +599 was assigned to the Netherlands Antilles (dissolved in 2010), and is now in use by Curaçao and the Caribbean...
Read more >
UPDATE TO THE USE OF THE NETHERLANDS ...
The country code "AN" standing for Netherlands Antilles has been replaced by Curacao (CW), Sint Maarten, Dutch Part (SX) and Bonaire, Sint Eustatius...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found