From ac0b1b01798245fa2143397578122502cd70889d Mon Sep 17 00:00:00 2001 From: Eduardo Date: Wed, 12 Jul 2023 12:28:04 +0200 Subject: [PATCH] chore: map long type values --- android/src/main/java/com/emarsys/rnwrapper/MapUtil.java | 2 ++ 1 file changed, 2 insertions(+) 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) {