Cleanup before image! codemod

Reviewed By: fkgozali

Differential Revision: D4196297

fbshipit-source-id: 5c32646dfe858f34c185a917e7d081a60777f242
This commit is contained in:
Alex Kotliarskyi 2016-11-22 21:01:34 -08:00 committed by Facebook Github Bot
parent 3aa25f7917
commit cab88104a3
6 changed files with 3 additions and 45 deletions

View File

@ -1,21 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "blue_square.png"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@ -1,21 +0,0 @@
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x",
"filename" : "red_square.png"
},
{
"idiom" : "universal",
"scale" : "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}

View File

@ -612,7 +612,7 @@ exports.examples = [
render: function() {
return (
<Image
source={require('image!legacy_image')}
source={{uri: 'legacy_image', width: 120, height: 120}}
/>
);
},

View File

@ -32,8 +32,8 @@ class ImageSnapshotTest extends React.Component {
render() {
return (
<Image
source={require('image!blue_square')}
defaultSource={require('image!red_square')}
source={require('./blue_square.png')}
defaultSource={require('./red_square.png')}
onLoad={() => TestModule.verifySnapshot(this.done)} />
);
}

View File

Before

Width:  |  Height:  |  Size: 128 B

After

Width:  |  Height:  |  Size: 128 B

View File

Before

Width:  |  Height:  |  Size: 129 B

After

Width:  |  Height:  |  Size: 129 B