[Hotfix] Fix filePathFixer for iOS 174.0 and later
This commit is contained in:
parent
361b541ddc
commit
4e1df66cc1
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue