mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-05-12 19:48:30 +08:00
added support for overlayColor property for image
Summary: In Android, Fresco's default rounding corners support mode is BITMAP_ONLY which doesn't work in all cases (such as animated GIF's, some scale types, etc.). Specifying the new "overlayColor" property on an Image will cause Fresco to switch to the other rounding corners mode, OVERLAY_COLOR, and will draw rounded corners by overlaying the solid color specified. Fresco's behaviour is explained here: http://frescolib.org/docs/rounded-corners-and-circles.html Closes https://github.com/facebook/react-native/pull/5366 Reviewed By: svcscm Differential Revision: D2854696 Pulled By: mkonicek fb-gh-sync-id: 251701ee8a64acbfc22694e9d4661c40eef75725
This commit is contained in:
committed by
facebook-github-bot-7
parent
099827372d
commit
f68281a0d8
@@ -47,5 +47,6 @@ ReactNativeStyleAttributes.shadowColor = colorAttributes;
|
||||
ReactNativeStyleAttributes.textDecorationColor = colorAttributes;
|
||||
ReactNativeStyleAttributes.tintColor = colorAttributes;
|
||||
ReactNativeStyleAttributes.textShadowColor = colorAttributes;
|
||||
ReactNativeStyleAttributes.overlayColor = colorAttributes;
|
||||
|
||||
module.exports = ReactNativeStyleAttributes;
|
||||
|
||||
Reference in New Issue
Block a user