Permalink
Browse files

Rename scaledAssetURLScript function to scaledAssetURLNearBundle

Reviewed By: zahanm

Differential Revision: D6272905

fbshipit-source-id: bff661fcadd73a5400cea422a8a5ac5db34717a8
  • Loading branch information...
Yujie Liu authored and facebook-github-bot committed Nov 8, 2017
1 parent 7170543 commit 1d6ce2311f6a51821b33c5473414d70c8bd34425
Showing with 3 additions and 3 deletions.
  1. +3 −3 Libraries/Image/AssetSourceResolver.js
@@ -79,7 +79,7 @@ class AssetSourceResolver {
this.drawableFolderInBundle() :
this.resourceIdentifierWithoutScale();
} else {
return this.scaledAssetURLInScript();
return this.scaledAssetURLNearBundle();
}
}
@@ -104,10 +104,10 @@ class AssetSourceResolver {
}
/**
* Resolves to where the script is running from, with a scaled asset filename
* Resolves to where the bundle is running from, with a scaled asset filename
* E.g. 'file:///sdcard/bundle/assets/AwesomeModule/icon@2x.png'
*/
scaledAssetURLInScript(): ResolvedAssetSource {
scaledAssetURLNearBundle(): ResolvedAssetSource {
const path = this.jsbundleUrl || 'file://';
return this.fromSource(path + getScaledAssetPath(this.asset));
}

0 comments on commit 1d6ce23

Please sign in to comment.