@onekeyfe/react-native-async-storage 1.1.59 → 3.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # @onekeyfe/react-native-async-storage
2
+
3
+ First, a sincere thank-you to Krzysztof Borowy and the
4
+ `@react-native-async-storage/async-storage` maintainers for their excellent
5
+ work 🙏
6
+
7
+ This package is built on, and inspired by,
8
+ [react-native-async-storage/async-storage](https://github.com/react-native-async-storage/async-storage).
9
+
10
+ Our original plan was to keep our customizations as patches on top of upstream
11
+ `@react-native-async-storage/async-storage`.
12
+
13
+ As our product requirements evolved, the scope of those changes outgrew what we
14
+ could reasonably maintain as an upstream patch set. We regret that we were
15
+ unable to keep this work in patch form.
16
+
17
+ As the gap grew, we ultimately forked `async-storage` to keep
18
+ development and delivery stable.
19
+
20
+ ## Upstream Project
21
+
22
+ - Repository: [react-native-async-storage/async-storage](https://github.com/react-native-async-storage/async-storage)
23
+ - License: MIT
24
+
25
+ ## Notes
26
+
27
+ - This fork includes OneKey-specific adaptations for our product requirements.
28
+ - If you are looking for original behavior and full documentation, please refer
29
+ to the upstream repository.
30
+
31
+ Thank you again to Krzysztof Borowy and everyone who contributes to
32
+ `@react-native-async-storage/async-storage` 💙
@@ -1,6 +1,6 @@
1
1
  #import <AsyncStorageSpec/AsyncStorageSpec.h>
2
2
 
3
- @interface AsyncStorage : NativeRNCAsyncStorageSpecBase <NativeRNCAsyncStorageSpec>
3
+ @interface AsyncStorage : NativeAsyncStorageSpecBase <NativeAsyncStorageSpec>
4
4
 
5
5
  - (void)multiGet:(NSArray<NSString *> *)keys
6
6
  resolve:(RCTPromiseResolveBlock)resolve
@@ -382,7 +382,7 @@ static void RCTStorageDirectoryMigrationCheck(NSString *fromStorageDirectory,
382
382
  - (std::shared_ptr<facebook::react::TurboModule>)getTurboModule:
383
383
  (const facebook::react::ObjCTurboModule::InitParams &)params
384
384
  {
385
- return std::make_shared<facebook::react::NativeRNCAsyncStorageSpecJSI>(params);
385
+ return std::make_shared<facebook::react::NativeAsyncStorageSpecJSI>(params);
386
386
  }
387
387
 
388
388
  - (instancetype)init
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/react-native-async-storage",
3
- "version": "1.1.59",
3
+ "version": "3.0.6",
4
4
  "description": "react-native-async-storage",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",