Add mapping for getAllUserAttributes API

This commit is contained in:
Hossam Hassan
2017-02-04 06:16:04 +02:00
parent d0844de778
commit 6c5702cf68
2 changed files with 21 additions and 0 deletions
@@ -579,6 +579,16 @@ public class RNInstabugReactnativeModule extends ReactContextBaseJavaModule {
}
}
/**
* Gets all saved user attributes.
*
* @return all user attributes as HashMap<String, String>
*/
@ReactMethod
public HashMap<String, String> getAllUserAttributes() {
return mInstabug.getAllUserAttributes();
}
private Locale getLocaleByKey(String instabugLocale) {
String localeInLowerCase = instabugLocale.toLowerCase();
switch (localeInLowerCase) {