
Security News
Node.js Homepage Adds Paid Support Link, Prompting Contributor Pushback
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
react-native-google-place-autocomplete
Advanced tools
React Native components to utilise the Place Autocomplete service of the Google Places API
React Native components for the Place Autocomplete service of the Google Places API Web Service.
npm install react-native-google-place-autocomplete --save
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..." />
);
}
Prop | Type | Default | Notes |
---|---|---|---|
debounce | number | 250 | The number of milliseconds to delay before requesting autocomplete predictions. |
googleAPIKey | string | Your Google API Key. The Google Places API Web Service must be enabled for this key. | |
placeholder | string | The placeholder text to be displayed in the autocomplete input when the value is empty. | |
value | string | The value of the autocomplete input. |
Name | Returns | Notes |
---|---|---|
onChangeText | string | |
onPredictions | Array<Prediction> | Where a Prediction is defined by the predictions property of the response of the Place Autocomplete API. |
onResult | Place | Where a Place is defined by the result property of the response of the Place Detail API. |
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
React Native components to utilise the Place Autocomplete service of the Google Places API
The npm package react-native-google-place-autocomplete receives a total of 4 weekly downloads. As such, react-native-google-place-autocomplete popularity was classified as not popular.
We found that react-native-google-place-autocomplete demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.
Research
North Korean threat actors linked to the Contagious Interview campaign return with 35 new malicious npm packages using a stealthy multi-stage malware loader.
Research
Security News
The Socket Research Team investigates a malicious Python typosquat of a popular password library that forces Windows shutdowns when input is incorrect.