File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed
android/src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -689,6 +689,17 @@ public void setEmailFieldRequired(boolean isEmailFieldRequired) {
689
689
mInstabug .setEmailFieldRequired (isEmailFieldRequired );
690
690
}
691
691
692
+ /**
693
+ * Sets whether users are required to enter a comment or not when sending reports.
694
+ * Defaults to NO.
695
+ * @param {boolean} isCommentFieldRequired A boolean to indicate whether comment
696
+ * field is required or not.
697
+ */
698
+ @ ReactMethod
699
+ public void setCommentFieldRequired (boolean isCommentFieldRequired ) {
700
+ mInstabug .setCommentFieldRequired (isCommentFieldRequired );
701
+ }
702
+
692
703
private Locale getLocaleByKey (String instabugLocale ) {
693
704
String localeInLowerCase = instabugLocale .toLowerCase ();
694
705
switch (localeInLowerCase ) {
Original file line number Diff line number Diff line change @@ -247,7 +247,6 @@ module.exports = {
247
247
* field is required or not.
248
248
*/
249
249
setCommentFieldRequired : function ( isCommentFieldRequired ) {
250
- if ( Platform . OS === 'ios' )
251
250
Instabug . setCommentFieldRequired ( isCommentFieldRequired ) ;
252
251
} ,
253
252
You can’t perform that action at this time.
0 commit comments