thegamenicorus / react-native-phone-input

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

onFocus not Working #150

Open karanmartian opened 4 years ago

karanmartian commented 4 years ago

I am trying to use the onFocus prop on this, but its not working. Any thoughts why this would be the case? since its supposed to accept all TextInput props.

ArturTimoxin commented 4 years ago

@karanmartian You can pass props like this:

textComponent={TextInput} textProps={{ value, placeholder: '+XXX XXX XXX XXX', placeholderTextColor: '#8F9BB3', onFocus: () => onFocus(), onBlur: () => onBlur(), }}

textPross will be pass to TextInput component