Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

Commit 4080baa

Browse files
committed
export empty object if Instabug native module is not defined
1 parent a733f8a commit 4080baa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import {NativeModules, NativeAppEventEmitter, Platform} from 'react-native';
22

33
let {Instabug} = NativeModules;
44

5+
if(Instabug) {
56
/**
67
* Instabug
78
* @exports Instabug
@@ -614,3 +615,6 @@ module.exports = {
614615
messagesNotificationAndOthers: Instabug.messagesNotificationAndOthers
615616
}
616617
};
618+
} else {
619+
module.exports = {};
620+
}

0 commit comments

Comments
 (0)