You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
After selecting the country and filling out the phone number, I'm unable to get formatted phone string value using phoneNumberTextField.getFormattedPhoneNumber(format: <FPNFormat>, I'm getting "+(null)(null)" with any format option.
To Reproduce
Steps to reproduce the behaviour:
Implement the basic version of the lib
Select country
Enter phone number
Try to get formatted phone number using getFormattedPhoneNumber function
Expected behaviour
I should get back the string with full phone number, with country code.
Device info:
Device: iPhone11
OS: iOS 15.2
FlagPhoneNumber version:
Version 0.8.0
Additional context
Also, I get null for the getRawPhoneNumber() function. So I managed to resolve this with using the raw text property on the TextField, removing spaces and minus signs, and getting the country code with phoneNumberTextField.selectedCountry?.phoneCode.
The text was updated successfully, but these errors were encountered:
Description
After selecting the country and filling out the phone number, I'm unable to get formatted phone string value using
phoneNumberTextField.getFormattedPhoneNumber(format: <FPNFormat>
, I'm getting "+(null)(null)" with any format option.To Reproduce
Steps to reproduce the behaviour:
getFormattedPhoneNumber
functionExpected behaviour
I should get back the string with full phone number, with country code.
Device info:
FlagPhoneNumber version:
Additional context
Also, I get null for the
getRawPhoneNumber()
function. So I managed to resolve this with using the rawtext
property on the TextField, removing spaces and minus signs, and getting the country code withphoneNumberTextField.selectedCountry?.phoneCode
.The text was updated successfully, but these errors were encountered: