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
107 stars 12 forks source link

Format phone number #62

Closed talhaizzettin closed 2 days ago

talhaizzettin commented 3 days ago

How I can get Formatted phone number to show it in my app the format it change by country

joelkanyi commented 3 days ago

https://joelkanyi.github.io/kompose-country-code-picker/customizations/ Screenshot_2024-07-04-20-58-10-680_com android chrome

talhaizzettin commented 3 days ago

I mean, for example, when I write a Turkish number, it is written this way: +90 555 555 55 55. I want it in this format. Every country has its own format. This functions erases these spaces

joelkanyi commented 2 days ago

Hey @talhaizzettin I had not implemented this, I'll add it

joelkanyi commented 2 days ago

Hey @talhaizzettin update the lib to version 1.2.3 then you'll be able to use this:

state.getFullyFormattedPhoneNumber()