Skip to content

Commit

Permalink
[react-packager] Change uri to name
Browse files Browse the repository at this point in the history
  • Loading branch information
Amjad Masad committed Apr 23, 2015
1 parent 4f89d1f commit 24095fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('Packager', function() {
__packager_asset: true,
isStatic: true,
path: '/root/img/img.png',
uri: 'img',
name: 'img',
width: 25,
height: 50,
deprecated: true,
Expand Down
2 changes: 1 addition & 1 deletion packager/react-packager/src/Packager/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Packager.prototype.generateAssetModule_DEPRECATED = function(ppackage, module) {
__packager_asset: true,
isStatic: true,
path: module.path,
uri: module.id.replace(/^[^!]+!/, ''),
name: module.id.replace(/^[^!]+!/, ''),
width: dimensions.width / module.resolution,
height: dimensions.height / module.resolution,
deprecated: true,
Expand Down

0 comments on commit 24095fc

Please sign in to comment.