Skip to content

Latest commit

 

History

History
45 lines (31 loc) · 797 Bytes

README.md

File metadata and controls

45 lines (31 loc) · 797 Bytes

native-universal-fs

A universal file system for React Native or Expo.

Will auto select the native module which is available.

Installation

npm install native-universal-fs

Usage

Use module like react-native-fs.

import fs from 'native-universal-fs';

fs.readFile('path/to/file.txt', 'utf8').then((data) => {
  console.log(data);
});

Supported

  • expo-file-system (NOTE: appendFile and write are not supported)
  • @dr.pogodin/react-native-fs
  • react-native-fs

License

MIT


Built and maintained by BRICKS.