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.
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))
For android https://developer.android.com/training/data-storage/app-specific#internal-access-files
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)