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

Function readFile

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

Source from the content-addressed store, hash-verified

307 },
308
309 readFile(filepath: string, encodingOrOptions?: any): Promise<string> {
310 return readFileGeneric(filepath, encodingOrOptions, RNFSManager.readFile);
311 },
312
313 read(filepath: string, length: number = 0, position: number = 0, encodingOrOptions?: any): Promise<string> {
314 var options = {

Callers

nothing calls this directly

Calls 1

readFileGenericFunction · 0.85

Tested by

no test coverage detected