Skip to content

Commit e2fcdcc

Browse files
Merge pull request #42 from Instabug/dev
Dev
2 parents 977b964 + 0ed5e1c commit e2fcdcc

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

index.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,26 @@ module.exports = {
708708
Instabug.setPromptOptionsEnabled(chat, bug, feedback);
709709
},
710710

711+
/**
712+
* Enables all Instabug functionality
713+
* It works on android only
714+
*/
715+
enable: function () {
716+
if (Platform.OS === 'android') {
717+
Instabug.enable();
718+
}
719+
},
720+
721+
/**
722+
* Disables all Instabug functionality
723+
* It works on android only
724+
*/
725+
disable: function () {
726+
if (Platform.OS === 'android') {
727+
Instabug.disable();
728+
}
729+
},
730+
711731
/**
712732
* The event used to invoke the feedback form
713733
* @readonly

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-reactnative",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "React Native plugin for integrating the Instabug SDK",
55
"main": "index.js",
66
"repository": {

0 commit comments

Comments
 (0)