A collection of hooks to use for file syncing in expo apps.
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.
useJSONFile(fileName)
It's the same as useFile() but handles JSON conversion by itself and returns object in value