From e5233df0410e884be437debed9734a751761c233 Mon Sep 17 00:00:00 2001 From: DevHossamHassan Date: Mon, 26 Jun 2017 17:22:29 +0200 Subject: [PATCH 1/2] Expose `enable` and `disable` APIs to JS --- index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) 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 From 0ed5e1c700d6428b22b7f30186e567722b8d6032 Mon Sep 17 00:00:00 2001 From: DevHossamHassan Date: Mon, 26 Jun 2017 17:22:55 +0200 Subject: [PATCH 2/2] Pump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {