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

254
Views
Excepción lanzada al ejecutar el bloque de UI: [NSNull doubleValue]: selector no reconocido enviado a la instancia 0x204329c00

Estoy tratando de mostrar un ícono relativo a coordenadas específicas en un mapa, pero sigo recibiendo este error, seguido de:

 removedChildren count(0) was not what we expected (1)

Esto no permitirá que el marcador aparezca en el mapa. A continuación se muestra mi código:

 const [restaurant_Latitude, setRestaurantLatitude] = useState(0) const [restaurant_Longitude, setRestaurantLongitude] = useState(0) const [restaurantPositionError, setRestaurantPositionError] = useState(null)

Usando react-native-svg para crear un icono

 const restaurantIcon = () =>{ return( <Svg height = {30} width = {30} > <Ellipse cx="10" cy="10" rx="10" ry="10" fill="red" stroke="#fff" strokeWidth="2" /> </Svg> ) }

//useEffect para obtener las coordenadas del restaurante

 useEffect(() =>{ ... displayRestaurantInfo = async () =>{ let restaurantInfo = client_instance.getFoodInfo() setRestaurantLatitude(restaurantInfo.latitude) setRestaurantLongitude(restaurantInfo.longitude) setRestaurantPositionError(null) } displayRestaurantInfo() ) }

...

//Cómo se representa en MapView

 return( <MapView> <Marker coordinate={ {latitude: restaurantLatitude, longitude: restaurantLongitude, error: position_error, }} > <View> {(restaurantIcon())} </View> </Marker> </MapView>
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!