Skip to content

Commit e5233df

Browse files
Expose enable and disable APIs to JS
1 parent a316778 commit e5233df

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,26 @@ module.exports = {
708708
Instabug.setPromptOptionsEnabled(chat, bug, feedback);
709709
},
710710

711+
/**
712+
* Enables all Instabug functionality
713+
* It works on android only
714+
*/
715+
enable: function () {
716+
if (Platform.OS === 'android') {
717+
Instabug.enable();
718+
}
719+
},
720+
721+
/**
722+
* Disables all Instabug functionality
723+
* It works on android only
724+
*/
725+
disable: function () {
726+
if (Platform.OS === 'android') {
727+
Instabug.disable();
728+
}
729+
},
730+
711731
/**
712732
* The event used to invoke the feedback form
713733
* @readonly

0 commit comments

Comments
 (0)