mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
Rename scaledAssetURLScript function to scaledAssetURLNearBundle
Reviewed By: zahanm Differential Revision: D6272905 fbshipit-source-id: bff661fcadd73a5400cea422a8a5ac5db34717a8
This commit is contained in:
parent
7170543e80
commit
1d6ce2311f
@ -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));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user