Questions tagged [react-google-places-autocomplete]
17 questions
3
votes
1 answer
How to integrate react-google-places-autocomplete with react-hook-from?
I wanted to have a input for location in my form like below
I am using a ready made component for this https://www.npmjs.com/package/react-google-places-autocomplete
import React from "react";
import GooglePlacesAutocomplete from…

Santhosh
- 9,965
- 20
- 103
- 243
1
vote
1 answer
Restrict bounds in use-places-autocomplete
I am trying to restrict the bounds in use-places-autocomplete as below
requestOptions: {
types: ["geocode"],
fields: [
"name",
"address_components",
"geometry.location",
"place_id",
…

Taio
- 3,152
- 11
- 35
- 59
1
vote
0 answers
How to simulate click on custom geojson layer with @react-google-maps/api?
I currently have a map loaded with my custom geojson. The geojson layer is attached with a z-index of 1 and an onclick function that reads the feature from the geojson data. Since the z-index is higher than the map, the onclick function attached to…

ILoveET
- 109
- 1
- 6
1
vote
4 answers
React Native Errors - VirtualizedLists should never be nested inside plain ScrollViews
I'm working on a react-native app and I have to put GooglePlacesAutocomplete in a Scrollview.This is the following code.

mahmudsajib
- 33
- 1
- 8
1
vote
1 answer
react-google-autocomplete component not updating when state updated
{this.state.formValues && this.state.formValues.map((input, index) => (

Prabhakaran
- 3,900
- 15
- 46
- 113
0
votes
0 answers
How to show currentLocation using GooglePlacesAutocomplete in expo project
I have created an expo project using npx create-expo-app test.
I have installed below packages:
npx expo install expo-location
npx expo install react-native-google-places-autocomplete
Below is my package.json:
{
"name": "test",
"version":…

Jean-Pascal MEWENEMESSE
- 649
- 2
- 8
- 25
0
votes
1 answer
How do i automatically focus on the select input in GooglePlacesAutoComplete
I'm using the react-google-places-autocomplete package and i want to customise the look a bit so that when i click on let's say a button or a div, it automatically shows the select input and automatically focuses on the input. How do i achieve…

Moro Owusu Afriyie
- 448
- 4
- 18
0
votes
0 answers
Combobox autocomplete disabled when loaded
An autocomplete component is loading everythig as expected but once it's loaded it remains disabled because it loads before check the "ready" status and it loads it disabled even when is ready.
Is there a way to load it asynchronously?
import React…

Alain
- 1
- 1
0
votes
1 answer
react native searchbar overlapping mapview but cant zoom or pitch mapview
i managed to overlapped my searchbar over react native mapview, however with that i wont be able to pitch or zoom onto my map, are there any solution to this?
reason i wanted to add touchablewithoutfeedback over googleplacesautocomplete is due that…

Nicholas Cheah
- 11
- 4
0
votes
1 answer
React-google-places-autocomplete street_address component not working?
I'm trying to split my autocomplete address into it's individual components to autofill an address form. I can get most of the address components to work, but when I get to the "Street_address" part, it doesn't work. I've copy and pasted the…

Christopher Koziol
- 173
- 2
- 11
0
votes
0 answers
TypeError: null is not an object (evaluating 'RNFusedLocation.getCurrentPosition')
Please, am new to react native. Am trying to get the current location through google places autocomplete for android in expo but an getting the error 'TypeError: null is not an object (evaluating 'RNFusedLocation.getCurrentPosition')'
below is my…

vanvince
- 1
0
votes
1 answer
Google Places Auto Complete making input field go up
I am working with the react-places-autocomplete package.
Whenever I type text into the input field and get suggestions, it makes the whole input field jumps up, ruining the look.
How can I get the input field to stay in place and just have the…

Samuel Moskovitch
- 23
- 3
0
votes
1 answer
React/Material UI - Google Places autocomplete dropdown sometimes doesn't work
So this code is working, but sometimes on page load or refresh the google places dropdown autocomplete suggestions is not showing up, I can type anything in the searchbox but it just doesn't load the autocomplete box. What could cause this…

ActaDennis
- 103
- 11
0
votes
1 answer
google places automplete only suggestions with stress number
I am working with googles api places for address autocomplete suggestions.
This is my simple working code:
0
votes
2 answers
reactjs-select + react-google-places-autocomplete: how to initialize with a place
I am using a ready made component from https://www.npmjs.com/package/react-google-places-autocomplete for google autocomplete places
But I want to initialize it with place. (because when i edit a form, i have to show the place there)
import React…

Santhosh
- 9,965
- 20
- 103
- 243