Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Empty locationResults

See original GitHub issue

Hi, Great package sir, I’m having an issue for displaying the autocomplete data provided from google API, I’ve followed all the steps in the readme file, I’ve created my API key and I’ve added it to the component. When I start typing the locationResults is always empty, I don’t understand is there a way to debug this to see if the problem is related to the API key or some issue in the library itself

<GoogleAutoComplete apiKey={Global.GOOGLE_MAPS_API_KEY} debounce={debounce} minLength={minLength}> {({ inputValue, handleTextChange, locationResults, fetchDetails, isSearching, }) => ( <React.Fragment> <Input value={inputValue} onChangeText={handleTextChange} placeholder={placeholder} style={inputStyle}/> {isSearching && <Spinner size='large'/>} <View style={styles.mainView}> <ScrollView style={styles.scrollViewStyle1} contentContainerStyle={styles.homeView}> <Text>data: {locationResults}</Text> {, i) => ( <LocationItem {...el} fetchDetails={fetchDetails} key={String(i)} /> ))} </ScrollView> </View> </React.Fragment> )} </GoogleAutoComplete>

screen shot 2018-09-10 at 2 56 11 am

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

EQuimpercommented, Mar 24, 2020

@memartello I will make a new video about how to setup this

EQuimpercommented, Feb 22, 2019

perfect I will do this, I’m open to pr also if you want to make it @YeonwooSung 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

LocationResult | Google Play services
A data class representing a geographic location result from the fused location provider. All locations returned by getLocations() are ...
Read more >
FusedLocationApi with PendingIntent is fired only once ...
I basically moved my listener to onConnected and checked for null . It worked fine after then. package com.github.robophil.location_service; ...
Read more >
Retrieving Location with LocationServices API
The Fused Location API is a higher-level Google Play Services API that wraps the underlying location sensors like GPS. You can accomplish tasks...
Read more >
docs/html/reference/com/google/android/gms/location/ ...
LocationResult.html ... <title>LocationResult | Android Developers</title> ... <div class="nav-section-header empty"><a href="/google/index.html">.
Read more >
@Override public void onLocationResult(LocationResult locationResult) { if (locationResult == null) { return; } for (Location location : locationResult.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found