expo-use-file
v1.1.3
Published
A collection of hooks for syncing data with files in expo apps.
Downloads
3
Readme
expo-use-file
A collection of hooks to use for file syncing in expo apps.
useFile(fileName)
Returns three values:[value, loadFromFile, writeToFile]
UseloadFromFile
to force load value from file. UsewriteToFile
to 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