-
- All Implemented Interfaces:
-
com.facebook.react.bridge.ReadableMap,com.facebook.react.bridge.WritableMap
public class WritableNativeMap extends ReadableNativeMap implements WritableMap
Implementation of a write-only map stored in native memory. Use createMap if you need to stub out creating this class in a test. TODO(5815532): Check if consumed on read
-
-
Constructor Summary
Constructors Constructor Description WritableNativeMap()
-
Method Summary
Modifier and Type Method Description native voidputBoolean(@NonNull() String key, boolean value)native voidputDouble(@NonNull() String key, double value)native voidputInt(@NonNull() String key, int value)native voidputNull(@NonNull() String key)native voidputString(@NonNull() String key, @Nullable() String value)voidputMap(@NonNull() String key, @Nullable() ReadableMap value)voidputArray(@NonNull() String key, @Nullable() ReadableArray value)voidmerge(@NonNull() ReadableMap source)WritableMapcopy()-
Methods inherited from class com.facebook.react.bridge.ReadableNativeMap
equals, getArray, getBoolean, getDouble, getDynamic, getEntryIterator, getInt, getJNIPassCounter, getMap, getString, getType, hasKey, hashCode, isNull, keySetIterator, toHashMap -
Methods inherited from class com.facebook.react.bridge.NativeMap
toString -
Methods inherited from class com.facebook.react.bridge.ReadableMap
getMap -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
putBoolean
native void putBoolean(@NonNull() String key, boolean value)
-
putMap
void putMap(@NonNull() String key, @Nullable() ReadableMap value)
-
putArray
void putArray(@NonNull() String key, @Nullable() ReadableArray value)
-
merge
void merge(@NonNull() ReadableMap source)
-
copy
WritableMap copy()
-
-
-
-