[Hotfix] Fix filePathFixer for iOS 174.0 and later

This commit is contained in:
Jack Matthews 2023-04-08 14:10:46 -04:00 committed by Beef
parent 361b541ddc
commit 4e1df66cc1
2 changed files with 2 additions and 1 deletions

View file

@ -10,7 +10,7 @@ export const createMMKVBackend = (store: string): StorageBackend => ({
export const createFileBackend = (file: string): StorageBackend => {
const filePathFixer: (file: string) => string = RN.Platform.select({
default: (f) => f,
ios: (f) => `Documents/${f}`,
ios: (f) => FileManager.saveFileToGallery ? f : `Documents/${f}`,
});
let created: boolean;