Skip to content

Commit

Permalink
Merge pull request #93 from emartech/MV-523-map-inbox-long-type-values
Browse files Browse the repository at this point in the history
chore: map long type values
  • Loading branch information
biancalui-emarsys authored Jul 13, 2023
2 parents 768aede + ac0b1b0 commit 3dbbea9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions android/src/main/java/com/emarsys/rnwrapper/MapUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3dbbea9

Please sign in to comment.