thegamenicorus / react-native-phone-input

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

Get PhoneInput value without ref, using onTextChange #87

Closed latusdenis closed 4 years ago

latusdenis commented 5 years ago

Hi! Is it possible to get PhoneInput value, using onTextChange, not refs?

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

Thanks!

Valentinishe commented 5 years ago

Hi! Is it possible to get PhoneInput value, using onTextChange, not refs?

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

Thanks!

But what this one onChangePhoneNumber did not suit you?

latusdenis commented 5 years ago

@Valentinishe Thanks a lot, it suits.

My bad, I didn't notice this method in docs

BartoszKaszewczuk commented 4 years ago

This issue can be closed now.