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

onNotFound does not work properly

Open fomichova opened this issue 2 years ago • 0 comments

Description:

If the user types something that does not return autocomplete results, onNotFound does not return anything. In the code it accepts the data of responseJSON, but it does not have this argument in props types.

In the code:

https://github.com/FaridSafi/react-native-google-places-autocomplete/blob/ec5ed1bd5d119657ddd9b5f11c119781bd295c7e/GooglePlacesAutocomplete.d.ts#L407

Versions:

"react-native-google-places-autocomplete": "^2.5.1", "react-native": "0.70.8",

Additional:

By the way, there is no ability to receive all data of Google autocomplete predictions. It would be good to receive Google predictions in the process of typing.

fomichova avatar Sep 13 '23 14:09 fomichova