Cleanup before image! codemod
Reviewed By: fkgozali Differential Revision: D4196297 fbshipit-source-id: 5c32646dfe858f34c185a917e7d081a60777f242
This commit is contained in:
parent
3aa25f7917
commit
cab88104a3
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -612,7 +612,7 @@ exports.examples = [
|
|||
render: function() {
|
||||
return (
|
||||
<Image
|
||||
source={require('image!legacy_image')}
|
||||
source={{uri: 'legacy_image', width: 120, height: 120}}
|
||||
/>
|
||||
);
|
||||
},
|
||||
|
|
|
@ -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)} />
|
||||
);
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
Before Width: | Height: | Size: 129 B After Width: | Height: | Size: 129 B |
Loading…
Reference in New Issue