Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onFocus not Working #150

Open
karanmartian opened this issue Jul 24, 2020 · 1 comment
Open

onFocus not Working #150

karanmartian opened this issue Jul 24, 2020 · 1 comment

Comments

@karanmartian
Copy link

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
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants