Skip to content

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

Notifications You must be signed in to change notification settings

null-none/rn-google-places

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

rn-google-places

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

How to install

# 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

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

Example

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

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


const Example = (props = {}) => (
  <View>
    <AutocompletePlaces
      apiKey="api key"
      visible={true}
      place={(result) => {
        console.log(result);
      }}
    />
  </View>
)

export default Example

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published