cljsrn

https://github.com/drapanjanas/re-natal | https://github.com/drapanjanas/re-natal/wiki/FAQ | https://github.com/condense/mercury-app/wiki | https://github.com/seantempesta/expo-cljs-template/ https://www.npmjs.com/package/create-expo-cljs-app
Oliver George 2020-10-16T03:29:40.117600Z

Anyone care to chime in on where I should be saving files which will be uploaded some time in the future. (e.g. photo taken and later uploaded). Temp dir is a risk of losing data before uploaded.

👍 1
Oliver George 2020-10-16T03:29:48.117900Z

Seems like this might be the solution:

(defn internal-file-path
  "Path to store internal app files which will persist and be backed up"
  []
  (case react-native/Platform.OS
    "ios" react-native-fs/LibraryDirectoryPath
    "android" react-native-fs/DocumentDirectoryPath))

👍 1
Oliver George 2020-10-16T03:30:52.119100Z

For ios (Library, not Documents since they're not for general access by user). Possibly in the Library/Application Support/myapp dir (https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html#//apple_ref/doc/uid/TP40010672-CH2-SW1)