Add mapping for clearLogs API

This commit is contained in:
Hossam Hassan
2017-02-03 18:28:14 +02:00
parent f8a73faf20
commit 20a74cd05c
2 changed files with 22 additions and 0 deletions
@@ -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) {