Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

317
Visualizações
How to show maps route on the upper side of the screen?


I've been trying to build an app for navigation to practice my React Native coding skills until I encountered an issue regarding the native maps (at least for the iPhone). I want the route to be displayed only on the upper side of the screen (top half). I am trying to use 'edgePadding' property but it doesn't affect the map no matter what values i send to it. This is what it automaticly renders:

React elements are blocking the route view

As I said, I want the route always to be displayed on the top half so the component doesn't block it. Like the following:

enter image description here

 useEffect(() => {
    if (!origin || !destination) return;
    // Zoom & fit to markers
    mapRef.current.fitToSuppliedMarkers(['origin', 'destination'], {
      edgePadding: { top: 50, bottom: 200, left: 50, right: 50}, // <= doesn't work
    });
  }, [origin, destination])
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda