Add mapping for clearAllUserAttributes API

This commit is contained in:
Hossam Hassan
2017-02-04 06:19:30 +02:00
parent 6c5702cf68
commit cb3f67a7f5
2 changed files with 37 additions and 8 deletions
@@ -589,6 +589,18 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
return mInstabug.getAllUserAttributes();
}
/**
* Clears all user attributes if exists.
*/
@ReactMethod
public void clearAllUserAttributes() {
try {
mInstabug.clearAllUserAttributes();
} catch (Exception e) {
e.printStackTrace();
}
}
private Locale getLocaleByKey(String instabugLocale) {
String localeInLowerCase = instabugLocale.toLowerCase();
switch (localeInLowerCase) {