You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
ShayanJamil519
changed the title
The place is not showing in input when user select any place from the google places autocomplete
The place is not showing in input when user select any place from the google places autocomplete in Expo
Apr 21, 2024
import { SafeAreaView, StyleSheet } from "react-native";
import { GooglePlacesAutocomplete } from "react-native-google-places-autocomplete";
const InputAutoComplete = ({ placeholder, onPlaceSelected, styling }) => {
return (
<>
<GooglePlacesAutocomplete
key={
input-${placeholder}
}styles={{ textInput: styling }}
placeholder={placeholder || ""}
fetchDetails={true}
onPress={(data, details = null) => {
console.log("Autocomplete onPress triggered", details);
onPlaceSelected(details);
}}
onFail={(error) => console.log(error)}
onNotFound={() => console.log("no results")}
query={{
key: "api-key",
language: "pt-BR",
}}
/>
</>
);
};
export default InputAutoComplete;
The text was updated successfully, but these errors were encountered: