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

224
Vistas
Transparent background overlapping

I have a simple view like this:

  <View style={{backgroundColor:'rgba(82, 82, 82, 0.8)',position:'absolute',left:0,width:100,height:100}}></View>
  <View style={{backgroundColor:'rgba(82, 82, 82, 0.8)',position:'absolute',left:50,width:100,height:100}}></View>

but the overlap produces a color of it's own like this:

enter image description here

how do I make them both be only transparent towards the background and not overlap the transparency ?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You either don't have transparency, or you don't overlap the views. Overlapping transparent views will always show whatever was behind the front views.

There is no magic way to tell a view in front to use its transparency and ignore any transparency behind. This is because the views are drawn back to front. So by the time the front view renders its transparency, then everything behind it is already drawn and finalized.

This is like overlapping a yellow plastic film and a green plastic film, and asking how can light can only go through the green one. That's just... not how it works.

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