mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
2bed2ab1a6
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/45352 We claim that we will never draw multiple elements on top of each other, which isn't correct when we have a background. We should claim that we can draw overlapping elements if we have a background drawable which we place in the Drawee hierarchy (part of the ImageView foreground drawable), or if the underlying view has a background drawable (which is handled by `ImageView` superclass `hasOverlappingRendering()`). The effect of this is subtle, and just means that we get correct compositing when an opacity is set on image with background. Changelog: [Android][Fixed] - Fix ReactImageView.hasOverlappingRendering() Reviewed By: mdvacca Differential Revision: D59489788 fbshipit-source-id: fe2922f064b91f1709ed546dd647d4d4112d04c1