thegamenicorus / react-native-phone-input

Phone input box for React Native
https://www.npmjs.com/package/react-native-phone-input
MIT License
395 stars 449 forks source link

How to use isValidNumber function? #124

Closed lkum11 closed 4 years ago

ayeshasaeed94 commented 4 years ago

<PhoneInput ref={(ref) => this.phone = ref} />

in any function in that component you can write this.phone.isValidNumber()

jaydenwindle commented 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.

usman1579 commented 3 years ago

but how we use in Hooks?