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

282
Visualizações
How to fit multiple Background images in react native (responsive)

I have two background images which are not fitting on different devices.

I tried with <ImageBackground> and absolute % calculation.

iPhone 12 (right performing):

iPhone 12 (right performing):

iPhone 12 Pro Max (wrong performing):

enter image description here

Has anyone a idea how to solve this responsive problem? Thanks in advance!

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

  1. If you don't set the height or width of an <ImageBackground/> it won't show.
  2. Next in order to overlay an <ImageBackground/> over other another you need to set the zIndex:1 to be 1 or higher then the other's zIndex. And make them position: 'absolute'
  3. Lastly if you want the borderRadius to show in an <ImageBackground/> set overflow: 'hidden'

Here's a full example below (https://snack.expo.dev/@heytony01/suspicious-celery)

about 4 years ago · Juan Pablo Isaza Relatório
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