MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / fromAsset

Function fromAsset

packages/core/image-source/index.ios.ts:499–503  ·  view source on GitHub ↗
(asset: ImageAsset)

Source from the content-addressed store, hash-verified

497}
498
499export function fromAsset(asset: ImageAsset): Promise<ImageSource> {
500 console.log('fromAsset() is deprecated. Use ImageSource.fromAsset() instead.');
501
502 return ImageSource.fromAsset(asset);
503}
504
505export function fromResource(name: string): ImageSource {
506 console.log('fromResource() is deprecated. Use ImageSource.fromResourceSync() instead.');

Callers

nothing calls this directly

Calls 2

logMethod · 0.45
fromAssetMethod · 0.45

Tested by

no test coverage detected