react-native-google-autocomplete icon indicating copy to clipboard operation
react-native-google-autocomplete copied to clipboard

Clear input value

Open slauzinho opened this issue 6 years ago • 5 comments

Can we also clear the input value if we call clearSearch since it implies that we are clearing the search input.

slauzinho avatar Jan 02 '20 21:01 slauzinho

@slauzinho good idea, but your input is surely already control from your side. And not everyone want this behavior I think. Maybe I can add a boolean option where this can do both. What you think?

EQuimper avatar Jan 03 '20 00:01 EQuimper

Sounds good to me, I can do it for you if you want. Should I add it as a prop of the component or a param for the clearSearch which defaults to not clearing the text field?

slauzinho avatar Jan 03 '20 08:01 slauzinho

I think the component is best, but I'm open to anything

EQuimper avatar Jan 08 '20 16:01 EQuimper

@slauzinho did you forget about this?

karimcambridge avatar Mar 17 '20 07:03 karimcambridge

what happened to this change? Any news? It would be great to have that boolean as a parameter to clearSearch....really handy

juanlet avatar Apr 22 '20 08:04 juanlet

This will now be in v 2 by default thank you

EQuimper avatar Jul 15 '24 13:07 EQuimper