@akbeniwal/react-native-smart-netinfo 1.0.5 → 1.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.
@@ -14,7 +14,7 @@ RCT_EXPORT_MODULE()
14
14
  _queue = dispatch_queue_create("com.smartnetinfo.networkmonitor", NULL);
15
15
  _monitor = nw_path_monitor_create();
16
16
 
17
- __weak typeof(self) weakSelf = self;
17
+ __weak ReactNativeSmartNetinfo *weakSelf = self;
18
18
  nw_path_monitor_set_update_handler(_monitor, ^(nw_path_t path) {
19
19
  nw_path_status_t status = nw_path_get_status(path);
20
20
  BOOL isConnected = (status == nw_path_status_satisfied);
@@ -65,9 +65,4 @@ RCT_EXPORT_MODULE()
65
65
  return std::make_shared<facebook::react::NativeReactNativeSmartNetinfoSpecJSI>(params);
66
66
  }
67
67
 
68
- + (NSString *)moduleName
69
- {
70
- return @"ReactNativeSmartNetinfo";
71
- }
72
-
73
68
  @end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akbeniwal/react-native-smart-netinfo",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "A lightweight smart network monitoring library for React Native with internet reachability, latency monitoring, connection quality detection and speed testing.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",