-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from AsyncStorage to FileStorage (#2084)
* Filesystem storage migration working * Logging * Add mock for rn-fetch * Update package.json * added throw to failed AsyncStorage so data will not be overwritten * added try catch to filesystem * async to set and remove methods in migration * updated key checking logic * removed key check Co-authored-by: andrepimenta <andrepimenta7@gmail.com> Co-authored-by: sethkfman <seth.kaufman@consensys.net> Co-authored-by: sethkfman <10342624+sethkfman@users.noreply.github.com>
- Loading branch information
1 parent
c477fde
commit d3174cd
Showing
5 changed files
with
102 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const noop = () => ({}); | ||
|
||
export default { | ||
DocumentDir: noop, | ||
fetch: noop, | ||
base64: noop, | ||
android: noop, | ||
ios: noop, | ||
config: noop, | ||
session: noop, | ||
fs: { | ||
exists: () => Promise.resolve(), | ||
dirs: { | ||
CacheDir: noop, | ||
DocumentDir: noop | ||
} | ||
}, | ||
wrap: noop | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters