Use static image resources introduced in React Native 0.14
This commit is contained in:
parent
f611b35a00
commit
fa8787dcad
|
@ -11,7 +11,7 @@ module.exports = {
|
|||
uri = player.avatar_url;
|
||||
return {uri};
|
||||
} else {
|
||||
uri = require('image!AuthorAvatar');
|
||||
uri = require('../../img/AuthorAvatar.png');
|
||||
return uri;
|
||||
}
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 40 KiB After Width: | Height: | Size: 40 KiB |
|
@ -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"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue