-
-
Notifications
You must be signed in to change notification settings - Fork 882
Open
Labels
Description
On Press not working in my site,
<GooglePlacesAutocomplete
placeholder="Search Your Address..."
placeholderTextColor="black"
currentLocation={false}
nearbyPlacesAPI="None"
onFail={error => {
console.warn('GooglePlacesAutocomplete error:', error);
Alert.alert('Places API Error', JSON.stringify(error));
}}
predefinedPlaces={[]}
onPress={(data, details = null) => {
console.log('Selected Address:', data?.description)
console.log('Location Details:', details)
setManualAddress(data.description || '')
}}
enablePoweredByContainer={false}
query={{
key: ApiKey,
language: 'en',
}}
minLength={2}
onTouchEnd={(data, details = null) => {
console.log('Selected Address:', data)
console.log('Location Details:', details)
}}
timeout={5000}
fetchDetails={true}
styles={{
container: { flex: 1 },
textInput: {
fontSize: 18,
borderColor: '#ccc',
borderWidth: 1,
borderRadius: 10,
paddingLeft: 10,
height: 50,
color: "black"
},
listView: {
backgroundColor: '#fff',
borderRadius: 5,
elevation: 3,
shadowColor: '#000',
shadowOffset: { width: 0, height: 2 },
shadowOpacity: 0.3,
shadowRadius: 3,
marginTop: 10,
},
row: {
padding: 16,
fontSize: 12,
borderBottomWidth: 1,
borderBottomColor: '#ddd',
},
predefinedPlacesDescription: {
color: '#1faadb',
},
description:{
color:'black'
},
}}
textInputProps={{
placeholderTextColor: '#ccc', // This sets the placeholder text color
}}
/>
"react-native-google-places-autocomplete": "^2.5.7",
"react": "19.0.0",
"react-native": "0.79.5",
Reactions are currently unavailable