-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeArrayInterface
,com.facebook.react.bridge.ReadableArray
,com.facebook.react.bridge.WritableArray
public class WritableNativeArray extends ReadableNativeArray implements WritableArray
Implementation of a write-only array stored in native memory. Use createArray if you need to stub out creating this class in a test. TODO(5815532): Check if consumed on read
-
-
Constructor Summary
Constructors Constructor Description WritableNativeArray()
-
Method Summary
Modifier and Type Method Description native void
pushNull()
native void
pushBoolean(boolean value)
native void
pushDouble(double value)
native void
pushInt(int value)
native void
pushString(@Nullable() String value)
void
pushArray(@Nullable() ReadableArray array)
void
pushMap(@Nullable() ReadableMap map)
-
Methods inherited from class com.facebook.react.bridge.ReadableNativeArray
equals, getArray, getBoolean, getDouble, getDynamic, getInt, getJNIPassCounter, getMap, getString, getType, hashCode, isNull, size, toArrayList
-
Methods inherited from class com.facebook.react.bridge.NativeArray
toString
-
Methods inherited from class com.facebook.react.bridge.ReadableArray
getArray, getMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
pushNull
native void pushNull()
-
pushBoolean
native void pushBoolean(boolean value)
-
pushDouble
native void pushDouble(double value)
-
pushInt
native void pushInt(int value)
-
pushString
native void pushString(@Nullable() String value)
-
pushArray
void pushArray(@Nullable() ReadableArray array)
-
pushMap
void pushMap(@Nullable() ReadableMap map)
-
-
-
-