Skip to content

Commit 48c30b2

Browse files
committed
fix: remove more deps
1 parent 6e5d9c4 commit 48c30b2

File tree

4 files changed

+1
-64
lines changed

4 files changed

+1
-64
lines changed

examples/SampleApp/ios/Podfile.lock

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,8 +1332,6 @@ PODS:
13321332
- React-jsiexecutor
13331333
- React-RCTFBReactNativeSpec
13341334
- ReactCommon/turbomodule/core
1335-
- react-native-netinfo (11.4.1):
1336-
- React-Core
13371335
- react-native-safe-area-context (5.4.1):
13381336
- DoubleConversion
13391337
- glog
@@ -1731,30 +1729,6 @@ PODS:
17311729
- React-logger (= 0.79.3)
17321730
- React-perflogger (= 0.79.3)
17331731
- React-utils (= 0.79.3)
1734-
- RNCAsyncStorage (2.2.0):
1735-
- DoubleConversion
1736-
- glog
1737-
- hermes-engine
1738-
- RCT-Folly (= 2024.11.18.00)
1739-
- RCTRequired
1740-
- RCTTypeSafety
1741-
- React-Core
1742-
- React-debug
1743-
- React-Fabric
1744-
- React-featureflags
1745-
- React-graphics
1746-
- React-hermes
1747-
- React-ImageManager
1748-
- React-jsi
1749-
- React-NativeModulesApple
1750-
- React-RCTFabric
1751-
- React-renderercss
1752-
- React-rendererdebug
1753-
- React-utils
1754-
- ReactCodegen
1755-
- ReactCommon/turbomodule/bridging
1756-
- ReactCommon/turbomodule/core
1757-
- Yoga
17581732
- RNGestureHandler (2.26.0):
17591733
- DoubleConversion
17601734
- glog
@@ -1875,7 +1849,6 @@ DEPENDENCIES:
18751849
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
18761850
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
18771851
- React-microtasksnativemodule (from `../node_modules/react-native/ReactCommon/react/nativemodule/microtasks`)
1878-
- "react-native-netinfo (from `../node_modules/@react-native-community/netinfo`)"
18791852
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
18801853
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
18811854
- React-oscompat (from `../node_modules/react-native/ReactCommon/oscompat`)
@@ -1908,7 +1881,6 @@ DEPENDENCIES:
19081881
- ReactAppDependencyProvider (from `build/generated/ios`)
19091882
- ReactCodegen (from `build/generated/ios`)
19101883
- ReactCommon/turbomodule/core (from `../node_modules/react-native/ReactCommon`)
1911-
- "RNCAsyncStorage (from `../node_modules/@react-native-async-storage/async-storage`)"
19121884
- RNGestureHandler (from `../node_modules/react-native-gesture-handler`)
19131885
- RNScreens (from `../node_modules/react-native-screens`)
19141886
- Yoga (from `../node_modules/react-native/ReactCommon/yoga`)
@@ -1995,8 +1967,6 @@ EXTERNAL SOURCES:
19951967
:path: "../node_modules/react-native/ReactCommon"
19961968
React-microtasksnativemodule:
19971969
:path: "../node_modules/react-native/ReactCommon/react/nativemodule/microtasks"
1998-
react-native-netinfo:
1999-
:path: "../node_modules/@react-native-community/netinfo"
20001970
react-native-safe-area-context:
20011971
:path: "../node_modules/react-native-safe-area-context"
20021972
React-NativeModulesApple:
@@ -2061,8 +2031,6 @@ EXTERNAL SOURCES:
20612031
:path: build/generated/ios
20622032
ReactCommon:
20632033
:path: "../node_modules/react-native/ReactCommon"
2064-
RNCAsyncStorage:
2065-
:path: "../node_modules/@react-native-async-storage/async-storage"
20662034
RNGestureHandler:
20672035
:path: "../node_modules/react-native-gesture-handler"
20682036
RNScreens:
@@ -2109,7 +2077,6 @@ SPEC CHECKSUMS:
21092077
React-logger: 44e070aefe084568c02b544b9d7d436703be1a47
21102078
React-Mapbuffer: ed1f528261013e46790379cc6727b8005e169a67
21112079
React-microtasksnativemodule: da563fd4cb7ecc23f67b5f15b92dfe94a9791e2d
2112-
react-native-netinfo: f0a9899081c185db1de5bb2fdc1c88c202a059ac
21132080
react-native-safe-area-context: f2e97b088ae5f3078f1ad03f51a44bd84f479053
21142081
React-NativeModulesApple: c761e39d8bb17a074530cb637ec6fe4460fac3af
21152082
React-oscompat: f26aa2a4adc84c34212ab12c07988fe19e9cf16a
@@ -2142,7 +2109,6 @@ SPEC CHECKSUMS:
21422109
ReactAppDependencyProvider: 552391af67c115d8ee20f9359711e7821145cd96
21432110
ReactCodegen: 5a3b071aec923e67260550b3f65329f844d691fa
21442111
ReactCommon: 1dce2374d9dc2cdf634244f1584513b606512750
2145-
RNCAsyncStorage: faf86846c58994b6b8aab074a4914eb1796c2a9f
21462112
RNGestureHandler: 2fa49aef8b58d35bcc61abe06ffecc4bcc5268a4
21472113
RNScreens: d9d5d8a2a484bb4446968bfa00db991f1117db44
21482114
SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748

examples/SampleApp/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
"clean-all": "yarn clean && rm -rf node_modules && rm -rf ios/Pods && rm -rf vendor && bundle install && yarn install && cd ios && bundle exec pod install && cd -"
2424
},
2525
"dependencies": {
26-
"@react-native-async-storage/async-storage": "^2.2.0",
27-
"@react-native-community/netinfo": "^11.4.1",
2826
"@react-navigation/bottom-tabs": "7.3.14",
2927
"@react-navigation/native": "^7.1.10",
3028
"@react-navigation/stack": "^7.3.3",
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
1-
import AsyncStorage from '@react-native-async-storage/async-storage';
21

32
export default {
43
getItem: async <T>(key: string, defaultValue: T | null) => {
5-
const value = await AsyncStorage.getItem(key);
64

5+
const value = null;
76
if (!value) {
87
return defaultValue;
98
}
109

1110
return JSON.parse(value) as T;
1211
},
1312
removeItem: async (key: string) => {
14-
await AsyncStorage.removeItem(key);
1513
},
1614
setItem: async <T>(key: string, value: T) => {
17-
await AsyncStorage.setItem(key, JSON.stringify(value));
1815
},
1916
};

examples/SampleApp/yarn.lock

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,13 +1431,6 @@
14311431
resolved "https://registry.yarnpkg.com/@pkgr/core/-/core-0.2.7.tgz#eb5014dfd0b03e7f3ba2eeeff506eed89b028058"
14321432
integrity sha512-YLT9Zo3oNPJoBjBc4q8G2mjU4tqIbf5CEOORbUUr48dCD9q3umJ3IPlVqOqDakPfd2HuwccBaqlGhN4Gmr5OWg==
14331433

1434-
"@react-native-async-storage/async-storage@^2.2.0":
1435-
version "2.2.0"
1436-
resolved "https://registry.yarnpkg.com/@react-native-async-storage/async-storage/-/async-storage-2.2.0.tgz#a3aa565253e46286655560172f4e366e8969f5ad"
1437-
integrity sha512-gvRvjR5JAaUZF8tv2Kcq/Gbt3JHwbKFYfmb445rhOj6NUMx3qPLixmDx5pZAyb9at1bYvJ4/eTUipU5aki45xw==
1438-
dependencies:
1439-
merge-options "^3.0.4"
1440-
14411434
"@react-native-community/[email protected]":
14421435
version "18.0.0"
14431436
resolved "https://registry.yarnpkg.com/@react-native-community/cli-clean/-/cli-clean-18.0.0.tgz#cdb414c069e0f6d2c1bca02cb48ec3c0f9686e3e"
@@ -1590,11 +1583,6 @@
15901583
prompts "^2.4.2"
15911584
semver "^7.5.2"
15921585

1593-
"@react-native-community/netinfo@^11.4.1":
1594-
version "11.4.1"
1595-
resolved "https://registry.yarnpkg.com/@react-native-community/netinfo/-/netinfo-11.4.1.tgz#a3c247aceab35f75dd0aa4bfa85d2be5a4508688"
1596-
integrity sha512-B0BYAkghz3Q2V09BF88RA601XursIEA111tnc2JOaN7axJWmNefmfjZqw/KdSxKZp7CZUuPpjBmz/WCR9uaHYg==
1597-
15981586
"@react-native/[email protected]":
15991587
version "0.79.3"
16001588
resolved "https://registry.yarnpkg.com/@react-native/assets-registry/-/assets-registry-0.79.3.tgz#022218d55a5d9d221a6d176987ab0b35c10d388b"
@@ -4538,11 +4526,6 @@ is-number@^7.0.0:
45384526
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
45394527
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==
45404528

4541-
is-plain-obj@^2.1.0:
4542-
version "2.1.0"
4543-
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.1.0.tgz#45e42e37fccf1f40da8e5f76ee21515840c09287"
4544-
integrity sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==
4545-
45464529
is-regex@^1.2.1:
45474530
version "1.2.1"
45484531
resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.2.1.tgz#76d70a3ed10ef9be48eb577887d74205bf0cad22"
@@ -5433,13 +5416,6 @@ memoize-one@^5.0.0:
54335416
resolved "https://registry.yarnpkg.com/memoize-one/-/memoize-one-5.2.1.tgz#8337aa3c4335581839ec01c3d594090cebe8f00e"
54345417
integrity sha512-zYiwtZUcYyXKo/np96AGZAckk+FWWsUdJ3cHGGmld7+AhvcWmQyGCYUh1hc4Q/pkOhb65dQR/pqCyK0cOaHz4Q==
54355418

5436-
merge-options@^3.0.4:
5437-
version "3.0.4"
5438-
resolved "https://registry.yarnpkg.com/merge-options/-/merge-options-3.0.4.tgz#84709c2aa2a4b24c1981f66c179fe5565cc6dbb7"
5439-
integrity sha512-2Sug1+knBjkaMsMgf1ctR1Ujx+Ayku4EdJN4Z+C2+JzoeF7A3OZ9KM2GY0CpQS51NR61LTurMJrRKPhSs3ZRTQ==
5440-
dependencies:
5441-
is-plain-obj "^2.1.0"
5442-
54435419
merge-stream@^2.0.0:
54445420
version "2.0.0"
54455421
resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60"

0 commit comments

Comments
 (0)