enabling progressive Jpeg rendering (part 2/2)
Reviewed By: nspaun Differential Revision: D2658991 fb-gh-sync-id: 13a103458c30ea3e8f0cb37456d09f70f4e76e4a
This commit is contained in:
parent
29c8d46ea1
commit
5217c8273f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue