Fork me on GitHub
Oliver George03:10:40

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.

👍 3
Oliver George03:10:48

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))

👍 3