File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
android/src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -1131,6 +1131,19 @@ public void run() {
1131
1131
}
1132
1132
}
1133
1133
1134
+ /**
1135
+ * @param enabled true to show success dialog after submitting a bug report
1136
+ *
1137
+ */
1138
+ @ ReactMethod
1139
+ public void setSuccessDialogEnabled (boolean enabled ) {
1140
+ try {
1141
+ mInstabug .setSuccessDialogEnabled (enabled );
1142
+ } catch (Exception e ) {
1143
+ e .printStackTrace ();
1144
+ }
1145
+ }
1146
+
1134
1147
private InstabugCustomTextPlaceHolder .Key getStringToKeyConstant (String key ) {
1135
1148
switch (key ) {
1136
1149
case SHAKE_HINT :
Original file line number Diff line number Diff line change @@ -780,6 +780,14 @@ module.exports = {
780
780
}
781
781
} ,
782
782
783
+ /**
784
+ * @param enabled true to show success dialog after submitting a bug report
785
+ *
786
+ */
787
+ setSuccessDialogEnabled : function ( enabled ) {
788
+ Instabug . setSuccessDialogEnabled ( enabled ) ;
789
+ } ,
790
+
783
791
/**
784
792
* The event used to invoke the feedback form
785
793
* @readonly
Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ - (dispatch_queue_t)methodQueue {
228
228
[Instabug logOut ];
229
229
}
230
230
231
- RCT_EXPORT_METHOD (setPostSendingDialogEnabled :(BOOL )isPostSendingDialogEnabled) {
231
+ RCT_EXPORT_METHOD (setSuccessDialogEnabled :(BOOL )isPostSendingDialogEnabled) {
232
232
[Instabug setPostSendingDialogEnabled: isPostSendingDialogEnabled];
233
233
}
234
234
You can’t perform that action at this time.
0 commit comments