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

Function readFileRes

FS.common.js:352–357  ·  view source on GitHub ↗
(filename: string, encodingOrOptions?: any)

Source from the content-addressed store, hash-verified

350
351 // Android only
352 readFileRes(filename: string, encodingOrOptions?: any): Promise<string> {
353 if (!RNFSManager.readFileRes) {
354 throw new Error('readFileRes is not available on this platform');
355 }
356 return readFileGeneric(filename, encodingOrOptions, RNFSManager.readFileRes);
357 },
358
359 hash(filepath: string, algorithm: string): Promise<string> {
360 return RNFSManager.hash(normalizeFilePath(filepath), algorithm);

Callers

nothing calls this directly

Calls 1

readFileGenericFunction · 0.85

Tested by

no test coverage detected