enabling progressive Jpeg rendering (part 2/2)

Reviewed By: nspaun

Differential Revision: D2658991

fb-gh-sync-id: 13a103458c30ea3e8f0cb37456d09f70f4e76e4a
This commit is contained in:
olivier notteghem 2015-11-16 11:39:19 -08:00 committed by facebook-github-bot-9
parent 29c8d46ea1
commit 5217c8273f
1 changed files with 4 additions and 0 deletions

View File

@ -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({
@ -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.