React-native-google-places-autocomplete: google places autocomplete: The provided api key is invalid

Created on 15 Aug 2018  路  2Comments  路  Source: FaridSafi/react-native-google-places-autocomplete

I receive the following error when trying to use this package:
error

As per the directions, I have enabled the following APIs:

  • Places API for Web
  • Geocoding API
    apis

I also added the following restrictions to see if that would help, but it did not:
restrictions

Any help would be appreciated.

All 2 comments

You need to get the key here https://developers.google.com/places/web-service/intro

And use the component like this:

<GooglePlacesAutocomplete query={{ key: 'API_KEY' }} />

None of the above working for me .

Was this page helpful?
0 / 5 - 0 ratings