diff --git a/index.js b/index.js index c91a559..3e6b02e 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,7 @@ import {NativeModules, NativeAppEventEmitter, DeviceEventEmitter, Platform} from "react-native"; let {Instabug} = NativeModules; +if(Instabug) { /** * Instabug * @exports Instabug @@ -1098,3 +1099,6 @@ module.exports = { collectingDataText: Instabug.collectingDataText } }; +} else { + module.exports = {}; +}