Skip to content

Commit

Permalink
Merge pull request #42 from Instabug/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
DevHossamHassan authored Jun 26, 2017
2 parents 977b964 + 0ed5e1c commit e2fcdcc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e2fcdcc

Please sign in to comment.