mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2026-08-31 14:11:11 +00:00
Enable isEmailFieldRequired API in android
This commit is contained in:
@@ -676,6 +676,19 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets whether users are required to enter an email address or not when
|
||||
* sending reports.
|
||||
* Defaults to YES.
|
||||
*
|
||||
* @param {boolean} isEmailFieldRequired A boolean to indicate whether email
|
||||
* field is required or not.
|
||||
*/
|
||||
@ReactMethod
|
||||
public void setEmailFieldRequired(boolean isEmailFieldRequired) {
|
||||
mInstabug.setEmailFieldRequired(isEmailFieldRequired);
|
||||
}
|
||||
|
||||
private Locale getLocaleByKey(String instabugLocale) {
|
||||
String localeInLowerCase = instabugLocale.toLowerCase();
|
||||
switch (localeInLowerCase) {
|
||||
|
||||
Reference in New Issue
Block a user