Skip to content

Commit 43a4662

Browse files
committed
🐛 Fix bug where appendTags() accepted a string, and not an array of tags
1 parent e8997da commit 43a4662

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativeModule.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,12 @@ public void dismiss() {
212212
* @param tags
213213
*/
214214
@ReactMethod
215-
public void appendTags(String tags) {
215+
public void appendTags(ReadableArray tags) {
216216
try {
217-
String[] result = tags.split(",");
217+
String[] result = new String[tags.size()];
218+
for(int i = 0; i < tags.size(); i++) {
219+
result[i] = tags.getString(i);
220+
}
218221
mInstabug.addTags(result);
219222
} catch (Exception e) {
220223
e.printStackTrace();

0 commit comments

Comments
 (0)