react-native-google-places-autocomplete
react-native-google-places-autocomplete copied to clipboard
Bug Fix: This fix makes the component stop failing silently when user doesn't specify onFail prop
This way, the default onFail behavior will occur for users who don't specify one (currently, the default behavior of calling console.warn isn't reachable code).
I spent 2 hours trying to figure out why it was silently failing. Had to manually edit the code locally to figure out the issue (my API key had restrictions) but had this PR already been in place it would've taken seconds. Hopefully this helps someone else.