Merge pull request #42 from Instabug/dev

Dev
This commit is contained in:
Hossam Hassan 2017-06-26 17:24:10 +02:00 committed by GitHub
commit e2fcdcccac
2 changed files with 21 additions and 1 deletions

View File

@ -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

View File

@ -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": {