alanjhughes / react-native-google-places-autocomplete

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Java 27.1%Language:TypeScript 26.1%Language:C++ 12.1%Language:Kotlin 8.8%Language:Swift 8.2%Language:Objective-C++ 6.3%Language:Ruby 3.0%Language:Makefile 2.7%Language:JavaScript 2.3%Language:Objective-C 1.8%Language:Starlark 1.0%Language:Shell 0.3%Language:C 0.2%