mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-14 23:18:06 +08:00
Reviewed By: mhorowitz Differential Revision: D3400379 fbshipit-source-id: b7e733e74bb0f4fbd597fd073826c399ece2c47f
30 lines
641 B
C++
30 lines
641 B
C++
// Copyright 2004-present Facebook. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include <fb/fbjni.h>
|
|
#include <folly/dynamic.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class NativeArray : public jni::HybridClass<NativeArray> {
|
|
public:
|
|
static constexpr const char* kJavaDescriptor = "Lcom/facebook/react/bridge/NativeArray;";
|
|
|
|
// Whether this array has been added to another array or map and no longer
|
|
// has a valid array value.
|
|
bool isConsumed = false;
|
|
folly::dynamic array;
|
|
|
|
jni::local_ref<jstring> toString();
|
|
|
|
static void registerNatives();
|
|
|
|
protected:
|
|
friend HybridBase;
|
|
explicit NativeArray(folly::dynamic array);
|
|
};
|
|
|
|
}}
|