Skip to content

alanjhughes/react-native-google-places-autocomplete

Repository files navigation

react-native-places-autocomplete

Google Places Autocomplete for React Native

This library is a work in progress and currently very much written to suit my needs. I will improve it and make it more useful over time.

Installation

npm install react-native-gp-autocomplete

Usage

import { GooglePlacesAutocomplete } from 'react-native-gp-autocomplete';

// ...

<View>
  <GooglePlacesAutocomplete
    apiKey={API_KEY}
    requestConfig={{ countries: ['IE'] }}
    onPlaceSelected={(place) => {
      console.log(place);
    }}
  />
</View>;

Contributing

See the contributing guide to learn how to contribute to the repository and the development workflow.

License

MIT