react-native-phone-input icon indicating copy to clipboard operation
react-native-phone-input copied to clipboard

onFocus not Working

Open karanmartian opened this issue 5 years ago • 1 comments

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.

karanmartian avatar Jul 24 '20 09:07 karanmartian

@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

ArturTimoxin avatar Nov 06 '20 19:11 ArturTimoxin