Skip to content

Commit

Permalink
Rename scaledAssetURLScript function to scaledAssetURLNearBundle
Browse files Browse the repository at this point in the history
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 1d6ce23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Libraries/Image/AssetSourceResolver.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class AssetSourceResolver {
this.drawableFolderInBundle() : this.drawableFolderInBundle() :
this.resourceIdentifierWithoutScale(); this.resourceIdentifierWithoutScale();
} else { } else {
return this.scaledAssetURLInScript(); return this.scaledAssetURLNearBundle();
} }
} }


Expand All @@ -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' * E.g. 'file:///sdcard/bundle/assets/AwesomeModule/icon@2x.png'
*/ */
scaledAssetURLInScript(): ResolvedAssetSource { scaledAssetURLNearBundle(): ResolvedAssetSource {
const path = this.jsbundleUrl || 'file://'; const path = this.jsbundleUrl || 'file://';
return this.fromSource(path + getScaledAssetPath(this.asset)); return this.fromSource(path + getScaledAssetPath(this.asset));
} }
Expand Down

0 comments on commit 1d6ce23

Please sign in to comment.