27 lines
1.4 KiB
JavaScript
27 lines
1.4 KiB
JavaScript
// Metro module 1459 (f1460).
|
|
import { NativeEventEmitter } from "react-native";
|
|
import Module1460 from "./Module1460";
|
|
let c1180_3;
|
|
if (Module1460) {
|
|
c1180_3 = null;
|
|
const r26 = Object;
|
|
const r30 = {};
|
|
Object.defineProperty(r30, "eventEmitter", {
|
|
get: function() {
|
|
let r1 = c1180_3;
|
|
if (!r1) {
|
|
const nativeEventEmitter = new NativeEventEmitter(Module1460);
|
|
c1180_3 = nativeEventEmitter;
|
|
r1 = nativeEventEmitter;
|
|
}
|
|
return r1;
|
|
},
|
|
set: void 0,
|
|
enumerable: true,
|
|
configurable: true
|
|
});
|
|
exports.default = r26.assign(Module1460, r30);
|
|
return void 0;
|
|
}
|
|
throw new Error("@react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps:\n\n• Run `react-native link @react-native-community/netinfo` in the project root.\n• Rebuild and re-run the app.\n• If you are using CocoaPods on iOS, run `pod install` in the `ios` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n• Check that the library was linked correctly when you used the link command by running through the manual installation instructions in the README.\n* If you are getting this error while unit testing you need to mock the native module. Follow the guide in the README.\n\nIf none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo");
|