@react-native-community/netinfo
Advanced tools
Comparing version 11.3.0 to 11.3.1
@@ -0,1 +1,8 @@ | ||
## [11.3.1](https://github.com/react-native-netinfo/react-native-netinfo/compare/v11.3.0...v11.3.1) (2024-02-27) | ||
### Bug Fixes | ||
* update nativeInterface default export to support bridgeless mode ([#717](https://github.com/react-native-netinfo/react-native-netinfo/issues/717)) ([950410b](https://github.com/react-native-netinfo/react-native-netinfo/commit/950410b)) | ||
# [11.3.0](https://github.com/react-native-netinfo/react-native-netinfo/compare/v11.2.1...v11.3.0) (2024-02-14) | ||
@@ -2,0 +9,0 @@ |
@@ -41,4 +41,3 @@ "use strict"; | ||
let nativeEventEmitter = null; | ||
var _default = { ..._nativeModule.default, | ||
const nativeInterface = Object.assign(_nativeModule.default, { | ||
get eventEmitter() { | ||
@@ -56,4 +55,5 @@ if (!nativeEventEmitter) { | ||
}; | ||
}); | ||
var _default = nativeInterface; | ||
exports.default = _default; | ||
//# sourceMappingURL=nativeInterface.js.map |
@@ -30,4 +30,3 @@ /** | ||
let nativeEventEmitter = null; | ||
export default { ...RNCNetInfo, | ||
const nativeInterface = Object.assign(RNCNetInfo, { | ||
get eventEmitter() { | ||
@@ -45,3 +44,4 @@ if (!nativeEventEmitter) { | ||
}; | ||
}); | ||
export default nativeInterface; | ||
//# sourceMappingURL=nativeInterface.js.map |
@@ -10,9 +10,5 @@ /** | ||
import { NativeEventEmitter } from 'react-native'; | ||
declare const _default: { | ||
eventEmitter: NativeEventEmitter; | ||
configure: (config: Partial<import("./types").NetInfoConfiguration>) => void; | ||
getCurrentState: (requestedInterface?: string | undefined) => Promise<import("./privateTypes").NetInfoNativeModuleState>; | ||
addListener<K extends "netInfo.networkStatusDidChange">(type: K, listener: (event: import("./privateTypes").Events[K]) => void): void; | ||
removeListeners<K_1 extends "netInfo.networkStatusDidChange">(type: K_1, listener: (event: import("./privateTypes").Events[K_1]) => void): void; | ||
declare const nativeInterface: import("./privateTypes").NetInfoNativeModule & { | ||
readonly eventEmitter: NativeEventEmitter; | ||
}; | ||
export default _default; | ||
export default nativeInterface; |
{ | ||
"name": "@react-native-community/netinfo", | ||
"version": "11.3.0", | ||
"version": "11.3.1", | ||
"description": "React Native Network Info API for iOS & Android", | ||
@@ -5,0 +5,0 @@ "react-native": "src/index.ts", |
@@ -31,4 +31,3 @@ /** | ||
let nativeEventEmitter: NativeEventEmitter | null = null; | ||
export default { | ||
...RNCNetInfo, | ||
const nativeInterface = Object.assign(RNCNetInfo, { | ||
get eventEmitter(): NativeEventEmitter { | ||
@@ -44,2 +43,3 @@ if (!nativeEventEmitter) { | ||
}, | ||
}; | ||
}); | ||
export default nativeInterface; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
539078
3759