Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-google-place-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-google-place-autocomplete

React Native components to utilise the Place Autocomplete service of the Google Places API

  • 0.3.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

React Native Google Place Autocomplete

React Native components for the Place Autocomplete service of the Google Places API Web Service.

Installing

npm install react-native-google-place-autocomplete --save

Example Usage

import GooglePlaceAutocomplete from 'react-native-google-place-autocomplete';

export default function Autocomplete() {
    return (
        <GooglePlaceAutocomplete
            googleAPIKey="YOUR API KEY"
            onResult={result => console.log}
            placeholder="Type to search..." />
    );
}

Props

PropTypeDefaultNotes
debouncenumber250The number of milliseconds to delay before requesting autocomplete predictions.
googleAPIKeystringYour Google API Key. The Google Places API Web Service must be enabled for this key.
placeholderstringThe placeholder text to be displayed in the autocomplete input when the value is empty.
valuestringThe value of the autocomplete input.

Events

NameReturnsNotes
onChangeTextstring
onPredictionsArray<Prediction>Where a Prediction is defined by the predictions property of the response of the Place Autocomplete API.
onResultPlaceWhere a Place is defined by the result property of the response of the Place Detail API.

Credits

Heavily influenced by react-native-google-places-autocomplete. Mainly a bit of restructuring and uses the Google Places Autocomplete API rather than the Nearby Search or Geocoding API's.

FAQs

Package last updated on 11 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc