mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2026-08-31 14:11:11 +00:00
Add mapping for clearLogs API
This commit is contained in:
@@ -521,6 +521,18 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears Instabug internal log
|
||||
*/
|
||||
@ReactMethod
|
||||
public void clearLogs() {
|
||||
try {
|
||||
InstabugLog.clearLogs();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private Locale getLocaleByKey(String instabugLocale) {
|
||||
String localeInLowerCase = instabugLocale.toLowerCase();
|
||||
switch (localeInLowerCase) {
|
||||
|
||||
Reference in New Issue
Block a user