MCPcopy Create free account
hub / github.com/itinance/react-native-fs / copyAssetsFileIOS

Function copyAssetsFileIOS

FS.common.js:383–386  ·  view source on GitHub ↗
(imageUri: string, destPath: string, width: number, height: number,
    scale: number = 1.0, compression: number = 1.0, resizeMode: string = 'contain')

Source from the content-addressed store, hash-verified

381 // with a given width or height
382 // @see: https://developer.apple.com/reference/photos/phimagemanager/1616964-requestimageforasset
383 copyAssetsFileIOS(imageUri: string, destPath: string, width: number, height: number,
384 scale: number = 1.0, compression: number = 1.0, resizeMode: string = 'contain'): Promise<string> {
385 return RNFSManager.copyAssetsFileIOS(imageUri, destPath, width, height, scale, compression, resizeMode);
386 },
387
388 // iOS only
389 // Copies fotos from asset-library (camera-roll) to a specific location

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected