Empty locationResults
See original GitHub issueHi, 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>
{locationResults.map((el, i) => (
<LocationItem
{...el}
fetchDetails={fetchDetails}
key={String(i)}
/>
))}
</ScrollView>
</View>
</React.Fragment>
)}
</GoogleAutoComplete>
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (5 by maintainers)
Top GitHub Comments
@memartello I will make a new video about how to setup this
perfect I will do this, I’m open to pr also if you want to make it @YeonwooSung 😃