Not showing predictions list with Expo
See original GitHub issueI have my component but the List showing the predicted places based on what I write is not showing. Any ideas?
"expo": "~36.0.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-36.0.0.tar.gz",
"react-native-google-places-autocomplete": "^1.4.0",
"react-native-maps": "^0.26.1",
"react-native-maps-directions": "^1.7.3",
PS: I am using Expo
import React from "react";
import { GooglePlacesAutocomplete } from "react-native-google-places-autocomplete";
import { Platform } from "react-native";
// import { Container } from './styles';
export default function Search() {
return (
<GooglePlacesAutocomplete
placeholder="Para onde?"
placeholderTextColor="#333"
onPress={(data, details) => {
console.log(data, details);
}}
query={{
key: "AIzaSyBVFhY3cURPTbAoOnkyAeijkAt2kqRJ2iY",
language: "pt"
}}
textInputProps={{
autoCapitalize: "none",
autoCorrect: false
}}
fetchDetails={true}
enablePoweredByContainer={false}
styles={{
container: {
position: "absolute",
top: Platform.select({ ios: 60, android: 40 }),
width: "100%"
},
textInputContainer: {
flex: 1,
backgroundColor: "transparent",
height: 54,
marginHorizontal: 20,
borderTopWidth: 0,
borderBottomWidth: 0
},
textInput: {
height: 54,
margin: 0,
borderRadius: 0,
paddingTop: 0,
paddingBottom: 0,
paddingLeft: 20,
paddingRight: 20,
marginTop: 0,
marginLeft: 0,
marginRight: 0,
elevation: 5,
shadowColor: "#000",
shadowOpacity: 0.1,
shadowOffset: { x: 0, y: 0 },
shadowRadius: 15,
borderWidth: 1,
borderColor: "#ddd",
fontSize: 18
},
listView: {
borderWidth: 1,
borderColor: "#ddd",
backgroundColor: "#fff",
marginHorizontal: 20,
elevation: 5,
shadowColor: "#000",
shadowOpacity: 0.1,
shadowOffset: { x: 0, y: 0 },
shadowRadius: 15,
marginTop: 10
},
description: {
fontSize: 16
},
row: {
padding: 20,
height: 58
}
}}
/>
);
}
edit: format and dependencies versions
Issue Analytics
- State:
- Created 4 years ago
- Reactions:6
- Comments:18 (1 by maintainers)
Top Results From Across the Web
Implementing saved python regression model to react expo ...
I have a python regression model that predicts one's level of happiness based on user-input data, i have trained and tested it using...
Read more >2022 D23 Expo Predictions & Wish List - Disney Tourist Blog
In any case, these predictions are all just fun speculation and mostly a wishlist–definitely not credible predictions or informed reporting.
Read more >Top D23 Expo 2022 Rumors - All the Possible Announcements
WIth the Disney D23 Expo 2022 very close there are many rumored attractions and such that could get announced. Here are our Top...
Read more >Today's Cal Expo Picks - Horse Racing - numberFire
Check our today's best picks on Cal Expo. With Numberfire you have access to the best horse racing predictions for free! Ready to...
Read more >D23 Expo Predictions: Fans' Best Guesses for What Disney ...
For Disney Parks fans, the semi-annual D23 Expo is like Christmas and a ... are on-hand to unveil the list of additions and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
posting here in case it helps anyone - there were two things that I had to do to get me unstuck (am using expo)
anyway, you can use expo-location. just do
cc @carlossuds @kwameaj67
yup the true answer is billing, just enable the billing and it’s worked.