Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

283
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda