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

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i expo-use-file

    Weekly Downloads

    1

    Version

    1.1.3

    License

    ISC

    Unpacked Size

    2.85 kB

    Total Files

    3

    Last publish

    Collaborators

    • kormanowsky