diff --git a/index.js b/index.js index 7105920d5..332364d87 100644 --- a/index.js +++ b/index.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 diff --git a/package.json b/package.json index 9cffcc055..c8f216bf8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "instabug-reactnative", - "version": "1.1.0", + "version": "1.1.1", "description": "React Native plugin for integrating the Instabug SDK", "main": "index.js", "repository": {