Expose `enable` and `disable` APIs to JS
@@ -708,6 +708,26 @@ module.exports = {
Instabug.setPromptOptionsEnabled(chat, bug, feedback);
},
+ /**
+ * Enables all Instabug functionality
+ * It works on android only
+ */
+ enable: function () {
+ if (Platform.OS === 'android') {
+ Instabug.enable();
+ }
+ },
+
+ /**
+ * Disables all Instabug functionality
+ * It works on android only
+ */
+ disable: function () {
+ if (Platform.OS === 'android') {
+ Instabug.disable();
+ }
+ },
+
/**
* The event used to invoke the feedback form
* @readonly
