mirror of https://github.com/status-im/metro.git
[react-packager] Change uri to name
This commit is contained in:
parent
91b320cf35
commit
f635db3b6d
|
@ -132,7 +132,7 @@ describe('Packager', function() {
|
||||||
__packager_asset: true,
|
__packager_asset: true,
|
||||||
isStatic: true,
|
isStatic: true,
|
||||||
path: '/root/img/img.png',
|
path: '/root/img/img.png',
|
||||||
uri: 'img',
|
name: 'img',
|
||||||
width: 25,
|
width: 25,
|
||||||
height: 50,
|
height: 50,
|
||||||
deprecated: true,
|
deprecated: true,
|
||||||
|
|
|
@ -181,7 +181,7 @@ Packager.prototype.generateAssetModule_DEPRECATED = function(ppackage, module) {
|
||||||
__packager_asset: true,
|
__packager_asset: true,
|
||||||
isStatic: true,
|
isStatic: true,
|
||||||
path: module.path,
|
path: module.path,
|
||||||
uri: module.id.replace(/^[^!]+!/, ''),
|
name: module.id.replace(/^[^!]+!/, ''),
|
||||||
width: dimensions.width / module.resolution,
|
width: dimensions.width / module.resolution,
|
||||||
height: dimensions.height / module.resolution,
|
height: dimensions.height / module.resolution,
|
||||||
deprecated: true,
|
deprecated: true,
|
||||||
|
|
Loading…
Reference in New Issue