expo-use-file

1.1.3 • Public • Published

expo-use-file

A collection of hooks to use for file syncing in expo apps.

  1. useFile(fileName) Returns three values: [value, loadFromFile, writeToFile] Use loadFromFile to force load value from file. Use writeToFile to write new value to the file.
  2. useJSONFile(fileName) It's the same as useFile() but handles JSON conversion by itself and returns object in value

Version History

  • v1.0.0 - Initial Release
  • v1.1.0 - Fix bug when woring with several files
  • v1.1.1 - Bugfix
  • v1.1.2 - Bugfix

Readme

Keywords

none

Package Sidebar

Install

npm i expo-use-file

Weekly Downloads

2

Version

1.1.3

License

ISC

Unpacked Size

2.85 kB

Total Files

3

Last publish

Collaborators

  • kormanowsky