mirror of
https://github.com/status-im/instabug-reactnative.git
synced 2025-03-03 14:40:54 +00:00
Add mapping for getAllUserAttributes API
This commit is contained in:
parent
d0844de778
commit
6c5702cf68
@ -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) {
|
||||
|
11
index.js
11
index.js
@ -664,6 +664,17 @@ module.exports = {
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* Gets all saved user attributes.
|
||||
*
|
||||
* @return all user attributes as HashMap<String, String>
|
||||
*/
|
||||
getAllUserAttributes(){
|
||||
if (Platform.OS === 'android') {
|
||||
return Instabug.getAllUserAttributes();
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* The event used to invoke the feedback form
|
||||
* @readonly
|
||||
|
Loading…
x
Reference in New Issue
Block a user