joelkanyi / kompose-country-code-picker

Kompose Country Code Picker is a Jetpack Compose library based on Material 3 (M3) that provides a country code picker for Android apps.
https://joelkanyi.github.io/kompose-country-code-picker/
Apache License 2.0
140 stars 14 forks source link

Set phone number #65

Closed talhaizzettin closed 2 months ago

talhaizzettin commented 2 months ago

if I get number when user signup the user go to settings screen to edit phone number i show set the number in KomposeCountryCodePicker how can i change country code and show number next to country code ?

i cant save the country code in my app because the user number come form backend like this +905555555555 user can signup from web or ios, before use compose UI in xml i used library do it now i cant find library in compose UI your library is the best but need some fixes .

also can u add textStyle to use our text style in the TextField

Thank you

joelkanyi commented 2 months ago

Hey @talhaizzettin

I will implement a feature this week that will automatically preselect the country code and format the phone number accordingly in the text field when someone enters a phone number with the country code.

Regarding the styling of text in the TextField, I apologize for the oversight. I will include both fixes in the next release.

joelkanyi commented 2 months ago

Hey @talhaizzettin, this has now been implemented, you can update to version 1.2.4:

If you set your phone number that is already formatted and has the phone code (+ prefix must be included), the TextField will arrange everything as it should. For example:

var phoneNumber by rememberSaveable { mutableStateOf("+905555555555") }

The result will be:

Screenshot 2024-07-09 at 16 14 51