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

281
Views
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 answers
Answer question

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 Report
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!