1.1.3 • Published 5 years ago
expo-use-file v1.1.3
expo-use-file
A collection of hooks to use for file syncing in expo apps.
useFile(fileName)Returns three values:[value, loadFromFile, writeToFile]UseloadFromFileto force load value from file. UsewriteToFileto write new value to the file.useJSONFile(fileName)It's the same asuseFile()but handles JSON conversion by itself and returns object invalue
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