Skip to content

Commit d28fe08

Browse files
Enable userAttributes APIs
1 parent 0ee7b45 commit d28fe08

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ module.exports = {
364364
* @param {strings} key Key of string to override.
365365
*/
366366
setStringToKey: function (string, key) {
367-
Instabug.setString(string, key);
367+
Instabug.setString(string, key);
368368
},
369369

370370
/**
@@ -620,6 +620,8 @@ module.exports = {
620620
getUserAttribute: function (key, userAttributeCallback) {
621621
if (Platform.OS === 'ios') {
622622
return Instabug.getUserAttribute(key, userAttributeCallback);
623+
} else if (Platform.OS === 'android') {
624+
return Instabug.getUserAttribute(key);
623625
}
624626
},
625627

@@ -643,6 +645,8 @@ module.exports = {
643645
getAllUserAttributes: function (userAttributesCallback) {
644646
if (Platform.OS === 'ios') {
645647
return Instabug.getAllUserAttributes(userAttributesCallback);
648+
} else if (Platform.OS === 'android') {
649+
return Instabug.getAllUserAttributes();
646650
}
647651
},
648652

0 commit comments

Comments
 (0)