Closed lkum11 closed 4 years ago
@ayeshasaeed94 is correct - isValidNumber
can be accessed using a PhoneInput
ref. For an example of how to interact with PhoneInput
via a ref, see the Custom Picker section of the readme.
but how we use in Hooks?
<PhoneInput ref={(ref) => this.phone = ref} />
in any function in that component you can write this.phone.isValidNumber()