export empty object if Instabug native module is not defined
This commit is contained in:
parent
a733f8ad5d
commit
4080baa750
4
index.js
4
index.js
|
@ -2,6 +2,7 @@ import {NativeModules, NativeAppEventEmitter, Platform} from 'react-native';
|
||||||
|
|
||||||
let {Instabug} = NativeModules;
|
let {Instabug} = NativeModules;
|
||||||
|
|
||||||
|
if(Instabug) {
|
||||||
/**
|
/**
|
||||||
* Instabug
|
* Instabug
|
||||||
* @exports Instabug
|
* @exports Instabug
|
||||||
|
@ -614,3 +615,6 @@ module.exports = {
|
||||||
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers
|
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
module.exports = {};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue