Skip to content

Commit a04f40e

Browse files
authored
Merge pull request #40389 from Expensify/Rory-RemoveUnusedAsyncStorage
[No QA] Remove unused react-native-async-storage dependency
2 parents 1b91125 + 230eb1d commit a04f40e

File tree

4 files changed

+2
-54
lines changed

4 files changed

+2
-54
lines changed

ios/Podfile.lock

+1-24
Original file line numberDiff line numberDiff line change
@@ -1697,25 +1697,6 @@ PODS:
16971697
- React-perflogger (= 0.73.4)
16981698
- RNAppleAuthentication (2.2.2):
16991699
- React-Core
1700-
- RNCAsyncStorage (1.21.0):
1701-
- glog
1702-
- hermes-engine
1703-
- RCT-Folly (= 2022.05.16.00)
1704-
- RCTRequired
1705-
- RCTTypeSafety
1706-
- React-Codegen
1707-
- React-Core
1708-
- React-debug
1709-
- React-Fabric
1710-
- React-graphics
1711-
- React-ImageManager
1712-
- React-NativeModulesApple
1713-
- React-RCTFabric
1714-
- React-rendererdebug
1715-
- React-utils
1716-
- ReactCommon/turbomodule/bridging
1717-
- ReactCommon/turbomodule/core
1718-
- Yoga
17191700
- RNCClipboard (1.13.2):
17201701
- glog
17211702
- hermes-engine
@@ -2154,7 +2135,6 @@ DEPENDENCIES:
21542135
- React-utils (from `../node_modules/react-native/ReactCommon/react/utils`)
21552136
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
21562137
- "RNAppleAuthentication (from `../node_modules/@invertase/react-native-apple-authentication`)"
2157-
- "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
21582138
- "RNCClipboard (from `../node_modules/@react-native-clipboard/clipboard`)"
21592139
- "RNCPicker (from `../node_modules/@react-native-picker/picker`)"
21602140
- RNDeviceInfo (from `../node_modules/react-native-device-info`)
@@ -2385,8 +2365,6 @@ EXTERNAL SOURCES:
23852365
:path: "../node_modules/react-native/ReactCommon"
23862366
RNAppleAuthentication:
23872367
:path: "../node_modules/@invertase/react-native-apple-authentication"
2388-
RNCAsyncStorage:
2389-
:path: "../node_modules/@react-native-async-storage/async-storage"
23902368
RNCClipboard:
23912369
:path: "../node_modules/@react-native-clipboard/clipboard"
23922370
RNCPicker:
@@ -2551,7 +2529,6 @@ SPEC CHECKSUMS:
25512529
React-utils: 6e5ad394416482ae21831050928ae27348f83487
25522530
ReactCommon: 840a955d37b7f3358554d819446bffcf624b2522
25532531
RNAppleAuthentication: 0571c08da8c327ae2afc0261b48b4a515b0286a6
2554-
RNCAsyncStorage: 559f22cc4b582414e783fd7255974b29e24b451c
25552532
RNCClipboard: c73bbc2e9012120161f1012578418827983bfd0c
25562533
RNCPicker: c77efa39690952647b83d8085520bf50ebf94ecb
25572534
RNDeviceInfo: cbf78fdb515ae73e641ee7c6b474f77a0299e7e6
@@ -2581,7 +2558,7 @@ SPEC CHECKSUMS:
25812558
SocketRocket: f32cd54efbe0f095c4d7594881e52619cfe80b17
25822559
Turf: 13d1a92d969ca0311bbc26e8356cca178ce95da2
25832560
VisionCamera: 3033e0dd5272d46e97bcb406adea4ae0e6907abf
2584-
Yoga: 1b901a6d6eeba4e8a2e8f308f708691cdb5db312
2561+
Yoga: 64cd2a583ead952b0315d5135bf39e053ae9be70
25852562

25862563
PODFILE CHECKSUM: a25a81f2b50270f0c0bd0aff2e2ebe4d0b4ec06d
25872564

package-lock.json

-28
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
"@kie/act-js": "^2.6.0",
7878
"@kie/mock-github": "^1.0.0",
7979
"@onfido/react-native-sdk": "10.6.0",
80-
"@react-native-async-storage/async-storage": "1.21.0",
8180
"@react-native-camera-roll/camera-roll": "7.4.0",
8281
"@react-native-clipboard/clipboard": "^1.13.2",
8382
"@react-native-community/geolocation": "3.2.1",

tests/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## Asynchronous Testing
66

7-
- Much of the logic in the app is asynchronous in nature. [`react-native-onyx`](https://github.com/expensify/react-native-onyx) relies on [`AsyncStorage`](https://github.com/react-native-async-storage/async-storage) and writes data async before updating subscribers.
7+
- Much of the logic in the app is asynchronous in nature. [`react-native-onyx`](https://github.com/expensify/react-native-onyx) writes data async before updating subscribers.
88
- [Actions](https://github.com/Expensify/App#actions) do not typically return a `Promise` and therefore can't always be "awaited" before running an assertion.
99
- To test a result after some asynchronous code has run we can use [`Onyx.connect()`](https://github.com/Expensify/react-native-onyx/blob/2c94a94e51fab20330f7bd5381b72ea6c25553d9/lib/Onyx.js#L217-L231) and the helper method [`waitForBatchedUpdates()`](https://github.com/Expensify/ReactNativeChat/blob/ca2fa88a5789b82463d35eddc3d57f70a7286868/tests/utils/waitForBatchedUpdates.js#L1-L9) which returns a `Promise` and will ensure that all other `Promises` have finished running before resolving.
1010
- **Important Note:** When writing any asynchronous Jest test it's very important that your test itself **return a `Promise`**.

0 commit comments

Comments
 (0)