An open API service indexing awesome lists of open source software.

https://github.com/null-none/rn-google-places

Google Places autocomplete component for iOS and Android React-Native apps
https://github.com/null-none/rn-google-places

google-places places places-api places-autocomplete react-native

Last synced: 2 months ago
JSON representation

Google Places autocomplete component for iOS and Android React-Native apps

Awesome Lists containing this project

README

          

# rn-google-places

Google Places autocomplete component for iOS and Android React-Native apps

## How to install

```bash
# Install via npm
npm install rn-google-places --save

# Install via yarn
yarn add rn-google-places
```

## How to use it

To use it, just import it directly into your components

```js
import { AutocompletePlaces } from 'rn-google-places'
```

## Example

The most basic example of this module is to use it like this :

```js
import React from 'react'
import { View, Button } from 'react-native'
import { AutocompletePlaces } from 'rn-google-places'

const Example = (props = {}) => (

{
console.log(result);
}}
/>

)

export default Example
```