react-google-autocomplete
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -68,3 +68,4 @@ 'use strict'; | ||
types = _props2.types, | ||
rest = _objectWithoutProperties(_props2, ['onPlaceSelected', 'types']); | ||
componentRestrictions = _props2.componentRestrictions, | ||
rest = _objectWithoutProperties(_props2, ['onPlaceSelected', 'types', 'componentRestrictions']); | ||
@@ -71,0 +72,0 @@ return _react2.default.createElement( |
{ | ||
"name": "react-google-autocomplete", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "React component for google autocomplete.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -26,2 +26,3 @@ ## React google autocomplete | ||
types={['(regions)']} | ||
componentRestrictions={{country: "ru"}} | ||
/> | ||
@@ -32,2 +33,3 @@ ``` | ||
A `types` props means type of places in [google place API](https://developers.google.com/places/web-service/autocomplete#place_types). By default it uses (cities). | ||
A [componentRestrictions](https://developers.google.com/maps/documentation/javascript/reference#ComponentRestrictions) prop by default is empty. | ||
You also can pass any props you want to the final input. |
@@ -33,3 +33,3 @@ import React, {PropTypes} from 'react'; | ||
render() { | ||
const {onPlaceSelected, types, ...rest} = this.props; | ||
const {onPlaceSelected, types, componentRestrictions, ...rest} = this.props; | ||
@@ -36,0 +36,0 @@ return ( |
12285
224
34