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

Function readFileAssets

FS.common.js:344–349  ·  view source on GitHub ↗
(filepath: string, encodingOrOptions?: any)

Source from the content-addressed store, hash-verified

342
343 // Android only
344 readFileAssets(filepath: string, encodingOrOptions?: any): Promise<string> {
345 if (!RNFSManager.readFileAssets) {
346 throw new Error('readFileAssets is not available on this platform');
347 }
348 return readFileGeneric(filepath, encodingOrOptions, RNFSManager.readFileAssets);
349 },
350
351 // Android only
352 readFileRes(filename: string, encodingOrOptions?: any): Promise<string> {

Callers

nothing calls this directly

Calls 1

readFileGenericFunction · 0.85

Tested by

no test coverage detected