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) {
689689 mInstabug .setEmailFieldRequired (isEmailFieldRequired );
690690 }
691691
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+
692703 private Locale getLocaleByKey (String instabugLocale ) {
693704 String localeInLowerCase = instabugLocale .toLowerCase ();
694705 switch (localeInLowerCase ) {
Original file line number Diff line number Diff line change @@ -247,7 +247,6 @@ module.exports = {
247247 * field is required or not.
248248 */
249249 setCommentFieldRequired : function ( isCommentFieldRequired ) {
250- if ( Platform . OS === 'ios' )
251250 Instabug . setCommentFieldRequired ( isCommentFieldRequired ) ;
252251 } ,
253252
You can’t perform that action at this time.
0 commit comments