@developer_tribe/react-native-comnyx 0.7.2 → 0.7.4

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.
Files changed (53) hide show
  1. package/android/build.gradle +12 -0
  2. package/android/generated/java/com/comnyx/NativeComnyxSpec.java +37 -0
  3. package/android/generated/jni/RNComnyxSpec-generated.cpp +11 -1
  4. package/android/generated/jni/RNComnyxSpec.h +7 -0
  5. package/android/generated/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI-generated.cpp +11 -0
  6. package/android/generated/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI.h +52 -0
  7. package/ios/generated/RNComnyxSpec/RNComnyxSpec-generated.mm +39 -0
  8. package/ios/generated/RNComnyxSpec/RNComnyxSpec.h +63 -0
  9. package/ios/generated/RNComnyxSpecJSI-generated.cpp +28 -0
  10. package/ios/generated/RNComnyxSpecJSI.h +71 -0
  11. package/lib/commonjs/components/ChatList.js +106 -100
  12. package/lib/commonjs/components/ChatList.js.map +1 -1
  13. package/lib/commonjs/components/CustomerForm.js +179 -173
  14. package/lib/commonjs/components/CustomerForm.js.map +1 -1
  15. package/lib/commonjs/components/EmptyList.js +7 -5
  16. package/lib/commonjs/components/EmptyList.js.map +1 -1
  17. package/lib/module/components/ChatList.js +107 -101
  18. package/lib/module/components/ChatList.js.map +1 -1
  19. package/lib/module/components/CustomerForm.js +180 -174
  20. package/lib/module/components/CustomerForm.js.map +1 -1
  21. package/lib/module/components/EmptyList.js +8 -6
  22. package/lib/module/components/EmptyList.js.map +1 -1
  23. package/lib/typescript/src/components/ChatList.d.ts.map +1 -1
  24. package/lib/typescript/src/components/CustomerForm.d.ts.map +1 -1
  25. package/lib/typescript/src/components/EmptyList.d.ts.map +1 -1
  26. package/package.json +1 -1
  27. package/src/components/ChatList.tsx +123 -110
  28. package/src/components/CustomerForm.tsx +212 -194
  29. package/src/components/EmptyList.tsx +10 -3
  30. package/android/app/build/generated/source/codegen/RCTAppDependencyProvider.h +0 -25
  31. package/android/app/build/generated/source/codegen/RCTAppDependencyProvider.mm +0 -55
  32. package/android/app/build/generated/source/codegen/RCTModulesConformingToProtocolsProvider.h +0 -18
  33. package/android/app/build/generated/source/codegen/RCTModulesConformingToProtocolsProvider.mm +0 -33
  34. package/android/app/build/generated/source/codegen/RCTThirdPartyComponentsProvider.h +0 -16
  35. package/android/app/build/generated/source/codegen/RCTThirdPartyComponentsProvider.mm +0 -23
  36. package/android/app/build/generated/source/codegen/ReactAppDependencyProvider.podspec +0 -34
  37. package/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeAsyncStorageModuleSpec.java +0 -59
  38. package/android/app/build/generated/source/codegen/jni/CMakeLists.txt +0 -36
  39. package/android/app/build/generated/source/codegen/jni/RNComnyxSpec-generated.cpp +0 -22
  40. package/android/app/build/generated/source/codegen/jni/RNComnyxSpec.h +0 -24
  41. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI-generated.cpp +0 -17
  42. package/android/app/build/generated/source/codegen/jni/react/renderer/components/RNComnyxSpec/RNComnyxSpecJSI.h +0 -19
  43. package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnasyncstorage/rnasyncstorageJSI-generated.cpp +0 -72
  44. package/android/app/build/generated/source/codegen/jni/react/renderer/components/rnasyncstorage/rnasyncstorageJSI.h +0 -116
  45. package/android/app/build/generated/source/codegen/jni/rnasyncstorage-generated.cpp +0 -62
  46. package/android/app/build/generated/source/codegen/jni/rnasyncstorage.h +0 -31
  47. package/android/generated/RCTAppDependencyProvider.h +0 -25
  48. package/android/generated/RCTAppDependencyProvider.mm +0 -55
  49. package/android/generated/RCTModulesConformingToProtocolsProvider.h +0 -18
  50. package/android/generated/RCTModulesConformingToProtocolsProvider.mm +0 -33
  51. package/android/generated/RCTThirdPartyComponentsProvider.h +0 -16
  52. package/android/generated/RCTThirdPartyComponentsProvider.mm +0 -23
  53. package/android/generated/ReactAppDependencyProvider.podspec +0 -34
@@ -1,34 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- #
3
- # This source code is licensed under the MIT license found in the
4
- # LICENSE file in the root directory of this source tree.
5
-
6
- version = "0.78.1"
7
- source = { :git => 'https://github.com/facebook/react-native.git' }
8
- if version == '1000.0.0'
9
- # This is an unpublished version, use the latest commit hash of the react-native repo, which we’re presumably in.
10
- source[:commit] = `git rev-parse HEAD`.strip if system("git rev-parse --git-dir > /dev/null 2>&1")
11
- else
12
- source[:tag] = "v#{version}"
13
- end
14
-
15
- Pod::Spec.new do |s|
16
- s.name = "ReactAppDependencyProvider"
17
- s.version = version
18
- s.summary = "The third party dependency provider for the app"
19
- s.homepage = "https://reactnative.dev/"
20
- s.documentation_url = "https://reactnative.dev/"
21
- s.license = "MIT"
22
- s.author = "Meta Platforms, Inc. and its affiliates"
23
- s.platforms = min_supported_versions
24
- s.source = source
25
- s.source_files = "**/RCTAppDependencyProvider.{h,mm}"
26
-
27
- # This guard prevent to install the dependencies when we run `pod install` in the old architecture.
28
- s.pod_target_xcconfig = {
29
- "CLANG_CXX_LANGUAGE_STANDARD" => rct_cxx_language_standard(),
30
- "DEFINES_MODULE" => "YES"
31
- }
32
-
33
- s.dependency "ReactCodegen"
34
- end
@@ -1,59 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJavaSpec.js
9
- *
10
- * @nolint
11
- */
12
-
13
- package com.facebook.fbreact.specs;
14
-
15
- import com.facebook.proguard.annotations.DoNotStrip;
16
- import com.facebook.react.bridge.Callback;
17
- import com.facebook.react.bridge.ReactApplicationContext;
18
- import com.facebook.react.bridge.ReactContextBaseJavaModule;
19
- import com.facebook.react.bridge.ReactMethod;
20
- import com.facebook.react.bridge.ReadableArray;
21
- import com.facebook.react.turbomodule.core.interfaces.TurboModule;
22
- import javax.annotation.Nonnull;
23
-
24
- public abstract class NativeAsyncStorageModuleSpec extends ReactContextBaseJavaModule implements TurboModule {
25
- public static final String NAME = "RNCAsyncStorage";
26
-
27
- public NativeAsyncStorageModuleSpec(ReactApplicationContext reactContext) {
28
- super(reactContext);
29
- }
30
-
31
- @Override
32
- public @Nonnull String getName() {
33
- return NAME;
34
- }
35
-
36
- @ReactMethod
37
- @DoNotStrip
38
- public abstract void multiGet(ReadableArray keys, Callback callback);
39
-
40
- @ReactMethod
41
- @DoNotStrip
42
- public abstract void multiSet(ReadableArray kvPairs, Callback callback);
43
-
44
- @ReactMethod
45
- @DoNotStrip
46
- public abstract void multiRemove(ReadableArray keys, Callback callback);
47
-
48
- @ReactMethod
49
- @DoNotStrip
50
- public abstract void multiMerge(ReadableArray kvPairs, Callback callback);
51
-
52
- @ReactMethod
53
- @DoNotStrip
54
- public abstract void getAllKeys(Callback callback);
55
-
56
- @ReactMethod
57
- @DoNotStrip
58
- public abstract void clear(Callback callback);
59
- }
@@ -1,36 +0,0 @@
1
- # Copyright (c) Meta Platforms, Inc. and affiliates.
2
- #
3
- # This source code is licensed under the MIT license found in the
4
- # LICENSE file in the root directory of this source tree.
5
-
6
- cmake_minimum_required(VERSION 3.13)
7
- set(CMAKE_VERBOSE_MAKEFILE on)
8
-
9
- file(GLOB react_codegen_SRCS CONFIGURE_DEPENDS *.cpp react/renderer/components/rnasyncstorage/*.cpp)
10
-
11
- add_library(
12
- react_codegen_rnasyncstorage
13
- OBJECT
14
- ${react_codegen_SRCS}
15
- )
16
-
17
- target_include_directories(react_codegen_rnasyncstorage PUBLIC . react/renderer/components/rnasyncstorage)
18
-
19
- target_link_libraries(
20
- react_codegen_rnasyncstorage
21
- fbjni
22
- jsi
23
- # We need to link different libraries based on whether we are building rncore or not, that's necessary
24
- # because we want to break a circular dependency between react_codegen_rncore and reactnative
25
- reactnative
26
- )
27
-
28
- target_compile_options(
29
- react_codegen_rnasyncstorage
30
- PRIVATE
31
- -DLOG_TAG=\"ReactNative\"
32
- -fexceptions
33
- -frtti
34
- -std=c++20
35
- -Wall
36
- )
@@ -1,22 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniCpp.js
9
- */
10
-
11
- #include "RNComnyxSpec.h"
12
-
13
- namespace facebook::react {
14
-
15
-
16
-
17
- std::shared_ptr<TurboModule> RNComnyxSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
18
-
19
- return nullptr;
20
- }
21
-
22
- } // namespace facebook::react
@@ -1,24 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <ReactCommon/JavaTurboModule.h>
14
- #include <ReactCommon/TurboModule.h>
15
- #include <jsi/jsi.h>
16
-
17
- namespace facebook::react {
18
-
19
-
20
-
21
- JSI_EXPORT
22
- std::shared_ptr<TurboModule> RNComnyxSpec_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
23
-
24
- } // namespace facebook::react
@@ -1,17 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "RNComnyxSpecJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
-
15
-
16
-
17
- } // namespace facebook::react
@@ -1,19 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
-
19
- } // namespace facebook::react
@@ -1,72 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleCpp.js
8
- */
9
-
10
- #include "rnasyncstorageJSI.h"
11
-
12
- namespace facebook::react {
13
-
14
- static jsi::Value __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_multiGet(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
15
- static_cast<NativeAsyncStorageModuleCxxSpecJSI *>(&turboModule)->multiGet(
16
- rt,
17
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt),
18
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt)
19
- );
20
- return jsi::Value::undefined();
21
- }
22
- static jsi::Value __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_multiSet(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
23
- static_cast<NativeAsyncStorageModuleCxxSpecJSI *>(&turboModule)->multiSet(
24
- rt,
25
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt),
26
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt)
27
- );
28
- return jsi::Value::undefined();
29
- }
30
- static jsi::Value __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_multiRemove(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
31
- static_cast<NativeAsyncStorageModuleCxxSpecJSI *>(&turboModule)->multiRemove(
32
- rt,
33
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt),
34
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt)
35
- );
36
- return jsi::Value::undefined();
37
- }
38
- static jsi::Value __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_multiMerge(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
39
- static_cast<NativeAsyncStorageModuleCxxSpecJSI *>(&turboModule)->multiMerge(
40
- rt,
41
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asArray(rt),
42
- count <= 1 ? throw jsi::JSError(rt, "Expected argument in position 1 to be passed") : args[1].asObject(rt).asFunction(rt)
43
- );
44
- return jsi::Value::undefined();
45
- }
46
- static jsi::Value __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_getAllKeys(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
47
- static_cast<NativeAsyncStorageModuleCxxSpecJSI *>(&turboModule)->getAllKeys(
48
- rt,
49
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt)
50
- );
51
- return jsi::Value::undefined();
52
- }
53
- static jsi::Value __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_clear(jsi::Runtime &rt, TurboModule &turboModule, const jsi::Value* args, size_t count) {
54
- static_cast<NativeAsyncStorageModuleCxxSpecJSI *>(&turboModule)->clear(
55
- rt,
56
- count <= 0 ? throw jsi::JSError(rt, "Expected argument in position 0 to be passed") : args[0].asObject(rt).asFunction(rt)
57
- );
58
- return jsi::Value::undefined();
59
- }
60
-
61
- NativeAsyncStorageModuleCxxSpecJSI::NativeAsyncStorageModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker)
62
- : TurboModule("RNCAsyncStorage", jsInvoker) {
63
- methodMap_["multiGet"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_multiGet};
64
- methodMap_["multiSet"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_multiSet};
65
- methodMap_["multiRemove"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_multiRemove};
66
- methodMap_["multiMerge"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_multiMerge};
67
- methodMap_["getAllKeys"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_getAllKeys};
68
- methodMap_["clear"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageModuleCxxSpecJSI_clear};
69
- }
70
-
71
-
72
- } // namespace facebook::react
@@ -1,116 +0,0 @@
1
- /**
2
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
3
- *
4
- * Do not edit this file as changes may cause incorrect behavior and will be lost
5
- * once the code is regenerated.
6
- *
7
- * @generated by codegen project: GenerateModuleH.js
8
- */
9
-
10
- #pragma once
11
-
12
- #include <ReactCommon/TurboModule.h>
13
- #include <react/bridging/Bridging.h>
14
-
15
- namespace facebook::react {
16
-
17
-
18
- class JSI_EXPORT NativeAsyncStorageModuleCxxSpecJSI : public TurboModule {
19
- protected:
20
- NativeAsyncStorageModuleCxxSpecJSI(std::shared_ptr<CallInvoker> jsInvoker);
21
-
22
- public:
23
- virtual void multiGet(jsi::Runtime &rt, jsi::Array keys, jsi::Function callback) = 0;
24
- virtual void multiSet(jsi::Runtime &rt, jsi::Array kvPairs, jsi::Function callback) = 0;
25
- virtual void multiRemove(jsi::Runtime &rt, jsi::Array keys, jsi::Function callback) = 0;
26
- virtual void multiMerge(jsi::Runtime &rt, jsi::Array kvPairs, jsi::Function callback) = 0;
27
- virtual void getAllKeys(jsi::Runtime &rt, jsi::Function callback) = 0;
28
- virtual void clear(jsi::Runtime &rt, jsi::Function callback) = 0;
29
-
30
- };
31
-
32
- template <typename T>
33
- class JSI_EXPORT NativeAsyncStorageModuleCxxSpec : public TurboModule {
34
- public:
35
- jsi::Value create(jsi::Runtime &rt, const jsi::PropNameID &propName) override {
36
- return delegate_.create(rt, propName);
37
- }
38
-
39
- std::vector<jsi::PropNameID> getPropertyNames(jsi::Runtime& runtime) override {
40
- return delegate_.getPropertyNames(runtime);
41
- }
42
-
43
- static constexpr std::string_view kModuleName = "RNCAsyncStorage";
44
-
45
- protected:
46
- NativeAsyncStorageModuleCxxSpec(std::shared_ptr<CallInvoker> jsInvoker)
47
- : TurboModule(std::string{NativeAsyncStorageModuleCxxSpec::kModuleName}, jsInvoker),
48
- delegate_(reinterpret_cast<T*>(this), jsInvoker) {}
49
-
50
-
51
- private:
52
- class Delegate : public NativeAsyncStorageModuleCxxSpecJSI {
53
- public:
54
- Delegate(T *instance, std::shared_ptr<CallInvoker> jsInvoker) :
55
- NativeAsyncStorageModuleCxxSpecJSI(std::move(jsInvoker)), instance_(instance) {
56
-
57
- }
58
-
59
- void multiGet(jsi::Runtime &rt, jsi::Array keys, jsi::Function callback) override {
60
- static_assert(
61
- bridging::getParameterCount(&T::multiGet) == 3,
62
- "Expected multiGet(...) to have 3 parameters");
63
-
64
- return bridging::callFromJs<void>(
65
- rt, &T::multiGet, jsInvoker_, instance_, std::move(keys), std::move(callback));
66
- }
67
- void multiSet(jsi::Runtime &rt, jsi::Array kvPairs, jsi::Function callback) override {
68
- static_assert(
69
- bridging::getParameterCount(&T::multiSet) == 3,
70
- "Expected multiSet(...) to have 3 parameters");
71
-
72
- return bridging::callFromJs<void>(
73
- rt, &T::multiSet, jsInvoker_, instance_, std::move(kvPairs), std::move(callback));
74
- }
75
- void multiRemove(jsi::Runtime &rt, jsi::Array keys, jsi::Function callback) override {
76
- static_assert(
77
- bridging::getParameterCount(&T::multiRemove) == 3,
78
- "Expected multiRemove(...) to have 3 parameters");
79
-
80
- return bridging::callFromJs<void>(
81
- rt, &T::multiRemove, jsInvoker_, instance_, std::move(keys), std::move(callback));
82
- }
83
- void multiMerge(jsi::Runtime &rt, jsi::Array kvPairs, jsi::Function callback) override {
84
- static_assert(
85
- bridging::getParameterCount(&T::multiMerge) == 3,
86
- "Expected multiMerge(...) to have 3 parameters");
87
-
88
- return bridging::callFromJs<void>(
89
- rt, &T::multiMerge, jsInvoker_, instance_, std::move(kvPairs), std::move(callback));
90
- }
91
- void getAllKeys(jsi::Runtime &rt, jsi::Function callback) override {
92
- static_assert(
93
- bridging::getParameterCount(&T::getAllKeys) == 2,
94
- "Expected getAllKeys(...) to have 2 parameters");
95
-
96
- return bridging::callFromJs<void>(
97
- rt, &T::getAllKeys, jsInvoker_, instance_, std::move(callback));
98
- }
99
- void clear(jsi::Runtime &rt, jsi::Function callback) override {
100
- static_assert(
101
- bridging::getParameterCount(&T::clear) == 2,
102
- "Expected clear(...) to have 2 parameters");
103
-
104
- return bridging::callFromJs<void>(
105
- rt, &T::clear, jsInvoker_, instance_, std::move(callback));
106
- }
107
-
108
- private:
109
- friend class NativeAsyncStorageModuleCxxSpec;
110
- T *instance_;
111
- };
112
-
113
- Delegate delegate_;
114
- };
115
-
116
- } // namespace facebook::react
@@ -1,62 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniCpp.js
9
- */
10
-
11
- #include "rnasyncstorage.h"
12
-
13
- namespace facebook::react {
14
-
15
- static facebook::jsi::Value __hostFunction_NativeAsyncStorageModuleSpecJSI_multiGet(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
16
- static jmethodID cachedMethodId = nullptr;
17
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "multiGet", "(Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Callback;)V", args, count, cachedMethodId);
18
- }
19
-
20
- static facebook::jsi::Value __hostFunction_NativeAsyncStorageModuleSpecJSI_multiSet(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
21
- static jmethodID cachedMethodId = nullptr;
22
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "multiSet", "(Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Callback;)V", args, count, cachedMethodId);
23
- }
24
-
25
- static facebook::jsi::Value __hostFunction_NativeAsyncStorageModuleSpecJSI_multiRemove(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
26
- static jmethodID cachedMethodId = nullptr;
27
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "multiRemove", "(Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Callback;)V", args, count, cachedMethodId);
28
- }
29
-
30
- static facebook::jsi::Value __hostFunction_NativeAsyncStorageModuleSpecJSI_multiMerge(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
31
- static jmethodID cachedMethodId = nullptr;
32
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "multiMerge", "(Lcom/facebook/react/bridge/ReadableArray;Lcom/facebook/react/bridge/Callback;)V", args, count, cachedMethodId);
33
- }
34
-
35
- static facebook::jsi::Value __hostFunction_NativeAsyncStorageModuleSpecJSI_getAllKeys(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
36
- static jmethodID cachedMethodId = nullptr;
37
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "getAllKeys", "(Lcom/facebook/react/bridge/Callback;)V", args, count, cachedMethodId);
38
- }
39
-
40
- static facebook::jsi::Value __hostFunction_NativeAsyncStorageModuleSpecJSI_clear(facebook::jsi::Runtime& rt, TurboModule &turboModule, const facebook::jsi::Value* args, size_t count) {
41
- static jmethodID cachedMethodId = nullptr;
42
- return static_cast<JavaTurboModule &>(turboModule).invokeJavaMethod(rt, VoidKind, "clear", "(Lcom/facebook/react/bridge/Callback;)V", args, count, cachedMethodId);
43
- }
44
-
45
- NativeAsyncStorageModuleSpecJSI::NativeAsyncStorageModuleSpecJSI(const JavaTurboModule::InitParams &params)
46
- : JavaTurboModule(params) {
47
- methodMap_["multiGet"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageModuleSpecJSI_multiGet};
48
- methodMap_["multiSet"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageModuleSpecJSI_multiSet};
49
- methodMap_["multiRemove"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageModuleSpecJSI_multiRemove};
50
- methodMap_["multiMerge"] = MethodMetadata {2, __hostFunction_NativeAsyncStorageModuleSpecJSI_multiMerge};
51
- methodMap_["getAllKeys"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageModuleSpecJSI_getAllKeys};
52
- methodMap_["clear"] = MethodMetadata {1, __hostFunction_NativeAsyncStorageModuleSpecJSI_clear};
53
- }
54
-
55
- std::shared_ptr<TurboModule> rnasyncstorage_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params) {
56
- if (moduleName == "RNCAsyncStorage") {
57
- return std::make_shared<NativeAsyncStorageModuleSpecJSI>(params);
58
- }
59
- return nullptr;
60
- }
61
-
62
- } // namespace facebook::react
@@ -1,31 +0,0 @@
1
-
2
- /**
3
- * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen).
4
- *
5
- * Do not edit this file as changes may cause incorrect behavior and will be lost
6
- * once the code is regenerated.
7
- *
8
- * @generated by codegen project: GenerateModuleJniH.js
9
- */
10
-
11
- #pragma once
12
-
13
- #include <ReactCommon/JavaTurboModule.h>
14
- #include <ReactCommon/TurboModule.h>
15
- #include <jsi/jsi.h>
16
-
17
- namespace facebook::react {
18
-
19
- /**
20
- * JNI C++ class for module 'NativeAsyncStorageModule'
21
- */
22
- class JSI_EXPORT NativeAsyncStorageModuleSpecJSI : public JavaTurboModule {
23
- public:
24
- NativeAsyncStorageModuleSpecJSI(const JavaTurboModule::InitParams &params);
25
- };
26
-
27
-
28
- JSI_EXPORT
29
- std::shared_ptr<TurboModule> rnasyncstorage_ModuleProvider(const std::string &moduleName, const JavaTurboModule::InitParams &params);
30
-
31
- } // namespace facebook::react
@@ -1,25 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
-
9
- #import <Foundation/Foundation.h>
10
-
11
- #if __has_include(<React-RCTAppDelegate/RCTDependencyProvider.h>)
12
- #import <React-RCTAppDelegate/RCTDependencyProvider.h>
13
- #elif __has_include(<React_RCTAppDelegate/RCTDependencyProvider.h>)
14
- #import <React_RCTAppDelegate/RCTDependencyProvider.h>
15
- #else
16
- #import "RCTDependencyProvider.h"
17
- #endif
18
-
19
- NS_ASSUME_NONNULL_BEGIN
20
-
21
- @interface RCTAppDependencyProvider : NSObject <RCTDependencyProvider>
22
-
23
- @end
24
-
25
- NS_ASSUME_NONNULL_END
@@ -1,55 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import "RCTAppDependencyProvider.h"
9
- #import <ReactCodegen/RCTModulesConformingToProtocolsProvider.h>
10
- #import <ReactCodegen/RCTThirdPartyComponentsProvider.h>
11
-
12
- @implementation RCTAppDependencyProvider {
13
- NSArray<NSString *> * _URLRequestHandlerClassNames;
14
- NSArray<NSString *> * _imageDataDecoderClassNames;
15
- NSArray<NSString *> * _imageURLLoaderClassNames;
16
- NSDictionary<NSString *,Class<RCTComponentViewProtocol>> * _thirdPartyFabricComponents;
17
- }
18
-
19
- - (nonnull NSArray<NSString *> *)URLRequestHandlerClassNames {
20
- static dispatch_once_t requestUrlToken;
21
- dispatch_once(&requestUrlToken, ^{
22
- self->_URLRequestHandlerClassNames = RCTModulesConformingToProtocolsProvider.URLRequestHandlerClassNames;
23
- });
24
-
25
- return _URLRequestHandlerClassNames;
26
- }
27
-
28
- - (nonnull NSArray<NSString *> *)imageDataDecoderClassNames {
29
- static dispatch_once_t dataDecoderToken;
30
- dispatch_once(&dataDecoderToken, ^{
31
- _imageDataDecoderClassNames = RCTModulesConformingToProtocolsProvider.imageDataDecoderClassNames;
32
- });
33
-
34
- return _imageDataDecoderClassNames;
35
- }
36
-
37
- - (nonnull NSArray<NSString *> *)imageURLLoaderClassNames {
38
- static dispatch_once_t urlLoaderToken;
39
- dispatch_once(&urlLoaderToken, ^{
40
- _imageURLLoaderClassNames = RCTModulesConformingToProtocolsProvider.imageURLLoaderClassNames;
41
- });
42
-
43
- return _imageURLLoaderClassNames;
44
- }
45
-
46
- - (nonnull NSDictionary<NSString *,Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents {
47
- static dispatch_once_t nativeComponentsToken;
48
- dispatch_once(&nativeComponentsToken, ^{
49
- _thirdPartyFabricComponents = RCTThirdPartyComponentsProvider.thirdPartyFabricComponents;
50
- });
51
-
52
- return _thirdPartyFabricComponents;
53
- }
54
-
55
- @end
@@ -1,18 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import <Foundation/Foundation.h>
9
-
10
- @interface RCTModulesConformingToProtocolsProvider: NSObject
11
-
12
- +(NSArray<NSString *> *)imageURLLoaderClassNames;
13
-
14
- +(NSArray<NSString *> *)imageDataDecoderClassNames;
15
-
16
- +(NSArray<NSString *> *)URLRequestHandlerClassNames;
17
-
18
- @end
@@ -1,33 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import "RCTModulesConformingToProtocolsProvider.h"
9
-
10
- @implementation RCTModulesConformingToProtocolsProvider
11
-
12
- +(NSArray<NSString *> *)imageURLLoaderClassNames
13
- {
14
- return @[
15
-
16
- ];
17
- }
18
-
19
- +(NSArray<NSString *> *)imageDataDecoderClassNames
20
- {
21
- return @[
22
-
23
- ];
24
- }
25
-
26
- +(NSArray<NSString *> *)URLRequestHandlerClassNames
27
- {
28
- return @[
29
-
30
- ];
31
- }
32
-
33
- @end
@@ -1,16 +0,0 @@
1
- /*
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
-
8
- #import <Foundation/Foundation.h>
9
-
10
- @protocol RCTComponentViewProtocol;
11
-
12
- @interface RCTThirdPartyComponentsProvider: NSObject
13
-
14
- + (NSDictionary<NSString *, Class<RCTComponentViewProtocol>> *)thirdPartyFabricComponents;
15
-
16
- @end