react-phone-input-2
react-phone-input-2 copied to clipboard
Expose a formatter parser
Would love to have a formatter exposed so that I can use this library to format numbers to display in span elements and such where I do not want to use an input. similar to the react-phone-number-input npm.
example:
import { formatPhoneNumber } from 'react-phone-input-2'
formatPhoneNumber(value: string?): string
If you cannot format it then just return the value as is.
It would be great to see this feature.
+1
+100