MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / fromFile

Function fromFile

packages/core/image-source/index.ios.ts:511–515  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

509}
510
511export function fromFile(path: string): ImageSource {
512 console.log('fromFile() is deprecated. Use ImageSource.fromFileSync() instead.');
513
514 return ImageSource.fromFileSync(path);
515}
516
517export function fromData(data: any): ImageSource {
518 console.log('fromData() is deprecated. Use ImageSource.fromDataSync() instead.');

Callers

nothing calls this directly

Calls 2

logMethod · 0.45
fromFileSyncMethod · 0.45

Tested by

no test coverage detected