mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-01 13:40:42 +00:00
export empty object if Instabug native module is not defined
This commit is contained in:
parent
cbf6c2d5d8
commit
92f919a683
4
index.js
4
index.js
@ -1,6 +1,7 @@
|
|||||||
import {NativeModules, NativeAppEventEmitter, DeviceEventEmitter, Platform} from "react-native";
|
import {NativeModules, NativeAppEventEmitter, DeviceEventEmitter, Platform} from "react-native";
|
||||||
let {Instabug} = NativeModules;
|
let {Instabug} = NativeModules;
|
||||||
|
|
||||||
|
if(Instabug) {
|
||||||
/**
|
/**
|
||||||
* Instabug
|
* Instabug
|
||||||
* @exports Instabug
|
* @exports Instabug
|
||||||
@ -1098,3 +1099,6 @@ module.exports = {
|
|||||||
collectingDataText: Instabug.collectingDataText
|
collectingDataText: Instabug.collectingDataText
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
module.exports = {};
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user