react-native-nexora 0.1.0 → 0.1.1

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/ios/Nexora.h CHANGED
@@ -1,5 +1,6 @@
1
1
  #import <NexoraSpec/NexoraSpec.h>
2
+ #import <React/RCTBridgeModule.h>
2
3
 
3
- @interface NexoraBridge : NSObject <NativeNexoraSpec>
4
+ @interface NexoraBridge : NSObject <NativeNexoraSpec, RCTBridgeModule>
4
5
 
5
6
  @end
package/ios/Nexora.mm CHANGED
@@ -1,5 +1,6 @@
1
1
  #import "Nexora.h"
2
2
  #import <React/RCTLog.h>
3
+ #import <React/RCTBridgeModule.h>
3
4
 
4
5
  // Forward declare the Swift wrapper we created
5
6
  @interface NexoraRNWrapper : NSObject
@@ -14,6 +15,13 @@
14
15
 
15
16
  @implementation NexoraBridge
16
17
 
18
+ RCT_EXPORT_MODULE(Nexora)
19
+
20
+ + (BOOL)requiresMainQueueSetup
21
+ {
22
+ return YES;
23
+ }
24
+
17
25
  - (void)getDefaultInstance {
18
26
  NSDictionary *info = [[NSBundle mainBundle] infoDictionary];
19
27
  NSString *baseURL = info[@"NexoraBaseURL"] ?: @"";
@@ -82,9 +90,4 @@
82
90
  return std::make_shared<facebook::react::NativeNexoraSpecJSI>(params);
83
91
  }
84
92
 
85
- + (NSString *)moduleName
86
- {
87
- return @"Nexora";
88
- }
89
-
90
93
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-nexora",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A React Native SDK for Nexora Apps",
5
5
  "main": "./lib/module/index.js",
6
6
  "types": "./lib/typescript/src/index.d.ts",
@@ -120,6 +120,11 @@
120
120
  "jsSrcsDir": "src",
121
121
  "android": {
122
122
  "javaPackageName": "com.nexora"
123
+ },
124
+ "ios": {
125
+ "modulesProvider": {
126
+ "Nexora": "NexoraBridge"
127
+ }
123
128
  }
124
129
  },
125
130
  "prettier": {