lemnisk-react-native 0.1.10 → 0.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -16,6 +16,7 @@ import com.google.firebase.messaging.FirebaseMessaging;
16
16
  import javax.annotation.Nullable;
17
17
  import org.json.JSONObject;
18
18
  import java.util.Iterator;
19
+ import com.facebook.react.bridge.ReadableMapKeySetIterator;
19
20
 
20
21
  import co.lemnisk.app.android.AttributeBuilder;
21
22
  import co.lemnisk.app.android.LemniskHelper;
@@ -60,6 +61,13 @@ public class LemniskSdkModule extends ReactContextBaseJavaModule {
60
61
  builder.addAttribute(key, nativeMap.get(key).toString());
61
62
  }
62
63
  }
64
+ else{
65
+ Iterator<String> keys = attr.keys();
66
+ while (keys.hasNext()) {
67
+ String key = keys.next();
68
+ builder.addAttribute(key, attr.get(key).toString());
69
+ }
70
+ }
63
71
  return builder.build();
64
72
  }
65
73
  catch (Exception e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lemnisk-react-native",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "plugin to setup the lemnisk sdk on both android and ios platform",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",