Rename scaledAssetURLScript function to scaledAssetURLNearBundle

Reviewed By: zahanm

Differential Revision: D6272905

fbshipit-source-id: bff661fcadd73a5400cea422a8a5ac5db34717a8
This commit is contained in:
Yujie Liu 2017-11-08 12:00:40 -08:00 committed by Facebook Github Bot
parent 7170543e80
commit 1d6ce2311f
1 changed files with 3 additions and 3 deletions

View File

@ -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));
}