diff --git a/android/src/main/java/com/emarsys/rnwrapper/MapUtil.java b/android/src/main/java/com/emarsys/rnwrapper/MapUtil.java index e4efff7..0e871e7 100644 --- a/android/src/main/java/com/emarsys/rnwrapper/MapUtil.java +++ b/android/src/main/java/com/emarsys/rnwrapper/MapUtil.java @@ -29,6 +29,8 @@ public static void mapPutNullable(WritableMap map, String key, Object value) { map.putBoolean(key, (Boolean) value); } else if (value instanceof Integer) { map.putInt(key, (Integer) value); + } else if (value instanceof Long) { + map.putDouble(key, ((Long) value).doubleValue()); } else if (value instanceof Double) { map.putDouble(key, (Double) value); } else if (value instanceof Float) {