mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-02 14:10:40 +00:00
✨ Add api method for setSuccessDialogEnabled
This commit is contained in:
parent
19cac949eb
commit
1e735d6d0e
@ -1131,6 +1131,19 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param enabled true to show success dialog after submitting a bug report
|
||||
*
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setSuccessDialogEnabled(boolean enabled) {
|
||||
try {
|
||||
mInstabug.setSuccessDialogEnabled(enabled);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private InstabugCustomTextPlaceHolder.Key getStringToKeyConstant(String key) {
|
||||
switch (key) {
|
||||
case SHAKE_HINT:
|
||||
|
8
index.js
8
index.js
@ -780,6 +780,14 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* @param enabled true to show success dialog after submitting a bug report
|
||||
*
|
||||
*/
|
||||
setSuccessDialogEnabled: function(enabled) {
|
||||
Instabug.setSuccessDialogEnabled(enabled);
|
||||
},
|
||||
|
||||
/**
|
||||
* The event used to invoke the feedback form
|
||||
* @readonly
|
||||
|
@ -228,7 +228,7 @@ RCT_EXPORT_METHOD(logout) {
|
||||
[Instabug logOut];
|
||||
}
|
||||
|
||||
RCT_EXPORT_METHOD(setPostSendingDialogEnabled:(BOOL)isPostSendingDialogEnabled) {
|
||||
RCT_EXPORT_METHOD(setSuccessDialogEnabled:(BOOL)isPostSendingDialogEnabled) {
|
||||
[Instabug setPostSendingDialogEnabled:isPostSendingDialogEnabled];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user