Skip to content

Commit

Permalink
enabling progressive Jpeg rendering (part 2/2)
Browse files Browse the repository at this point in the history
Reviewed By: nspaun

Differential Revision: D2658991

fb-gh-sync-id: 13a103458c30ea3e8f0cb37456d09f70f4e76e4a
  • Loading branch information
olinotteghem authored and facebook-github-bot-9 committed Nov 16, 2015
1 parent 29c8d46 commit 5217c82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Libraries/Image/Image.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ var resolveAssetSource = require('resolveAssetSource');
var ImageViewAttributes = merge(ReactNativeViewAttributes.UIView, {
src: true,
resizeMode: true,
progressiveRenderingEnabled: true,
fadeDuration: true,
});

var Image = React.createClass({
Expand All @@ -70,6 +72,8 @@ var Image = React.createClass({
// Opaque type returned by require('./image.jpg')
PropTypes.number,
]).isRequired,
progressiveRenderingEnabled: PropTypes.bool,
fadeDuration: PropTypes.number,
style: StyleSheetPropType(ImageStylePropTypes),
/**
* Used to locate this view in end-to-end tests.
Expand Down

0 comments on commit 5217c82

Please sign in to comment.