Use static image resources introduced in React Native 0.14

This commit is contained in:
Roman Sklenář 2015-11-24 17:36:43 +01:00
parent f611b35a00
commit fa8787dcad
5 changed files with 1 additions and 24 deletions

View File

@ -11,7 +11,7 @@ module.exports = {
uri = player.avatar_url;
return {uri};
} else {
uri = require('image!AuthorAvatar');
uri = require('../../img/AuthorAvatar.png');
return uri;
}
}

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

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