From 351c97ec374c094bc2b7f95849ba3852ced50719 Mon Sep 17 00:00:00 2001 From: VonD Date: Fri, 1 Apr 2016 09:11:08 -0700 Subject: [PATCH] adding missing string case in ReadableNativeMap to HashMap Summary:about #6639 Closes https://github.com/facebook/react-native/pull/6762 Differential Revision: D3126541 fb-gh-sync-id: f895e6d3b4c0abec41b56a031828763a4e8e210f fbshipit-source-id: f895e6d3b4c0abec41b56a031828763a4e8e210f --- .../main/java/com/facebook/react/bridge/ReadableNativeMap.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java index 4bd5f3ba0..9d1fec631 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java +++ b/ReactAndroid/src/main/java/com/facebook/react/bridge/ReadableNativeMap.java @@ -67,6 +67,9 @@ public class ReadableNativeMap extends NativeMap implements ReadableMap { case Number: hashMap.put(key, getDouble(key)); break; + case String: + hashMap.put(key, getString(key)); + break; case Map: hashMap.put(key, getMap(key).toHashMap()); break;