mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2026-08-27 12:11:17 +00:00
export empty object if Instabug native module is not defined
This commit is contained in:
@@ -2,6 +2,7 @@ import {NativeModules, NativeAppEventEmitter, Platform} from 'react-native';
|
||||
|
||||
let {Instabug} = NativeModules;
|
||||
|
||||
if(Instabug) {
|
||||
/**
|
||||
* Instabug
|
||||
* @exports Instabug
|
||||
@@ -614,3 +615,6 @@ module.exports = {
|
||||
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers
|
||||
}
|
||||
};
|
||||
} else {
|
||||
module.exports = {};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user