-
Notifications
You must be signed in to change notification settings - Fork 75
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
Switch async-storage repository #85
Changes from all commits
0227177
fccab2f
fbccb45
a1ec213
064748f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export {default} from '@react-native-async-storage/async-storage/jest/async-storage-mock'; |
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,6 @@ | |
"test": "jest" | ||
}, | ||
"dependencies": { | ||
"@react-native-community/async-storage": "^1.12.1", | ||
"expensify-common": "git+https://github.com/Expensify/expensify-common.git#2e5cff552cf132da90a3fb9756e6b4fb6ae7b40c", | ||
"lodash": "4.17.21", | ||
"react": "^16.13.1", | ||
|
@@ -24,6 +23,7 @@ | |
"@babel/preset-env": "^7.11.0", | ||
"@babel/preset-react": "^7.10.4", | ||
"@babel/runtime": "^7.11.2", | ||
"@react-native-async-storage/async-storage": "^1.15.5", | ||
"@react-native-community/eslint-config": "^2.0.0", | ||
"@testing-library/jest-native": "^3.4.2", | ||
"@testing-library/react-native": "^7.0.2", | ||
|
@@ -41,6 +41,9 @@ | |
"react-test-renderer": "16.13.1", | ||
"metro-react-native-babel-preset": "^0.61.0" | ||
}, | ||
"peerDependencies": { | ||
"@react-native-async-storage/async-storage": "^1.15.5" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've never used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've put that into the description but here's some more information
It sounds counterintuitive to provide a dependency to a package you're installing but this addresses problems like 2 or more different version of AsyncStorage being installed You need AsyncStorage in E.cash so you can configure it and link it to the app Usually libraries need to work together with other libraries that use the same packages, sometimes they even need to share the same instance of a module as well that's why they leave the project that installs them to resolve their peer dependencies There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh wow, that's really interesting. Funny that I've never ran into this before, but ReactNative is a bit of a different monster that I'm still getting used to. Thanks for the information! |
||
}, | ||
"jest": { | ||
"preset": "react-native", | ||
"transform": { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the update
AsyncStorage.multiSet
throws when it is called with an empty array