Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVEMENT] - iCloud Backup Restriction #4159

Merged
merged 8 commits into from
Apr 28, 2022
20 changes: 20 additions & 0 deletions patches/redux-persist-filesystem-storage+3.0.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/node_modules/redux-persist-filesystem-storage/index.js b/node_modules/redux-persist-filesystem-storage/index.js
index 7198fde..eb187bd 100644
--- a/node_modules/redux-persist-filesystem-storage/index.js
+++ b/node_modules/redux-persist-filesystem-storage/index.js
@@ -41,11 +41,13 @@ const FilesystemStorage = {
onStorageReady = onStorageReadyFactory(options.storagePath);
},

- setItem: (key: string, value: string, callback?: (error: ?Error) => void) =>
+ setItem: (key: string, value: string, callback?: (error: ?Error) => void) => {
+ RNFetchBlob.ios?.excludeFromBackupKey(pathForKey(key));
RNFetchBlob.fs
.writeFile(pathForKey(key), value, options.encoding)
.then(() => callback && callback())
- .catch(error => callback && callback(error)),
+ .catch(error => callback && callback(error));
+ },

getItem: onStorageReady(
(key: string, callback?: (error: ?Error, result: ?(Array<number> | string)) => void) => {