We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Environment: react-native@0.67, macOS, ios Simulator
Package version: 3.2.38
Problem: PhoneNumberUtil.isValidNumber returns false if a number starts with "+3897389"
PhoneNumberUtil.isValidNumber
false
Implementation:
export function validatePassengerPhone(phone?: string) { try { const parsed = phoneUtils.parse(phone); return phoneUtils.isValidNumber(parsed); } catch { return false; } }
NOTE: Tested on the official demo page and there is no issue. The phone number appears as valid under the isValidNumber property
isValidNumber
The text was updated successfully, but these errors were encountered:
@SimeonGrancharov i have tried to recreate the problem but could not
Sorry, something went wrong.
@SarhaneGhribi Yes that's what I wrote under the NOTE section.
Unfortunately, when using the library in a project, the same number is treated as invalid.
I have referred to the original documentation, and I assume that the metadata for this library is outdated.
Please check with google-libphonenumber@3.2.39 which has just been released.
No branches or pull requests
Environment:
react-native@0.67, macOS, ios Simulator
Package version:
3.2.38
Problem:
PhoneNumberUtil.isValidNumber
returnsfalse
if a number starts with "+3897389"Implementation:
NOTE:
Tested on the official demo page and there is no issue. The phone number appears as valid under the
isValidNumber
propertyThe text was updated successfully, but these errors were encountered: