mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 08:05:34 +00:00
Document image blurRadius is working on Android too
Summary:
Hi,
I saw blurRadius is now working on Android. Updated the doc to show it.
It is available since 0.44, see 0b348095b6
See RNTester screenshot on Android:

Also I noticed it's a bit different than on iOS:

Looking briefly at the code, it looks like it's caused by the fact that the Android version applies blur to the original image data in full size (and applies `PixelUtil.toPixelFromDIP(blurRadius)`), but the iOS version applies it to the resized version.
I'll open an issue for this.
Closes https://github.com/facebook/react-native/pull/14055
Differential Revision: D5103240
Pulled By: javache
fbshipit-source-id: 16d8c8755cd27a4f13c28e8831017733327ca491
This commit is contained in:
parent
872fbc27fe
commit
fc09c54324
@ -181,7 +181,6 @@ const Image = React.createClass({
|
||||
accessibilityLabel: PropTypes.node,
|
||||
/**
|
||||
* blurRadius: the blur radius of the blur filter added to the image
|
||||
* @platform ios
|
||||
*/
|
||||
blurRadius: PropTypes.number,
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user