-
-
Notifications
You must be signed in to change notification settings - Fork 855
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
Adds "onBlur" hook in TextInputComp onBlur prop #506
Conversation
Relevant |
I can use <GooglePlacesAutocomplete
query={{
key: GOOGLE_PLACES_API_KEY,
language: 'en', // language of the results
}}
onPress={(data, details = null) => console.log(data)}
textInputProps={{
onBlur: () => console.log('hello'),
}}
/> |
@bell-steven Oh I see. I didn't realize that. As a user of the package, I'd rather use it like I use the |
How do you use the Very little of this library is well documented. It is an ongoing effort. PRs always welcome. I really appreciate your taking the time to resolve the conflicts. As an aside, as I wrote in the roadmap issue (#552) I would ideally like to see the number of props directly available from the library be drastically reduced. There are currently at least 46 props available. As an example, some of the |
Hey sorry, I just looked at my code again and I am using it the way you suggested: |
Thats why I am a little back and forth on whether I should merge this. On the one hand, there should be consistency between To solve you problem, would using a ref to call The question for me is, does blur() get called automatically? Or does it have to be called in If you don't mind, I would like to leave this open for now. |
This is the current default behavior:
If you leave it so that passing the |
You can use the |
Interesting. I may have to play around with that and see if I can get it to work for me 👍 Thanks for your work on this project, btw! Glad you picked it up. |
Thanks. Holler if you get stuck. I'll be happy to try and help. |
Added this hook so that consumers of this package can include "onBlur" in their textInputProps just like they would with "onFocus".