Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

219
Views
error al actualizar la propiedad 'coordenada' de una vista administrada por airmapmarker

Me enfrento a este error, se da el código.

En el componente SearchResult , pasé el origen y el destino de los accesorios al componente RouteMap y cuando ejecuto el código me encuentro con un error de

error al actualizar la propiedad 'coordenada' de una vista administrada por airmapmarker

componente 1:

 import { useRoute } from '@react-navigation/native'; const SearchResults = (props) => { const route = useRoute(); const {originPlace, destinationPlace} = route.params; console.log(route.params); return ( <View style={{display: 'flex', justifyContent: 'space-between'}}> <View style={{height: Dimensions.get('window').height - 400}}> <RouteMap origin={originPlace} destination={destinationPlace} /> </View> <View style={{height: 400}}> <UberType /> </View> </View> ); }; export default SearchResults;

componente 2

 const RouteMap = ({ origin, destination }) => { const originLoc = { latitude: origin.details.geometry.location.lat, longitude: origin.details.geometry.location.lng, }; const destinationLoc = { latitude: destination.details.geometry.location.lat, longitude: destination.details.geometry.location.lng, }; return ( <MapView style={{ width: '100%', height: '100%' }} provider={PROVIDER_GOOGLE} showsUserLocation={true} initialRegion={{ latitude: 28.450627, longitude: -16.263045, latitudeDelta: 0.0222, longitudeDelta: 0.0121, }}> <MapViewDirections origin={originLoc} destination={destinationLoc} apikey={GOOGLE_MAPS_APIKEY} strokeWidth={5} strokeColor="black" /> <Marker coordinate={origin} title={'Origin'} /> <Marker coordinate={destination} title={"Destination"} /> </MapView> ); }; export default RouteMap;

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!