Skip to content

Commit

Permalink
chore: map long type values
Browse files Browse the repository at this point in the history
  • Loading branch information
eduzatoni committed Jul 12, 2023
1 parent 768aede commit ac0b1b0
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 ac0b1b0

Please sign in to comment.