mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-01-13 09:20:50 +08:00
Add defination for ReadableMap interface
Summary: In ReactNative, Native Modules usually use `ReadableMap` interface to take in arguments to methods, not `ReadableNativeMap`. Adding this interface defination to C++, so that with TurboModules, we could use it with `getMethod` definations. Reviewed By: fkgozali Differential Revision: D6721049 fbshipit-source-id: cb6e82d618338e54199c7dd066a846e71e742bc6
This commit is contained in:
committed by
Facebook Github Bot
parent
c9dc1c68a2
commit
dc52cc5a8f
@@ -19,6 +19,10 @@ namespace react {
|
||||
|
||||
struct WritableNativeMap;
|
||||
|
||||
struct ReadableMap : jni::JavaClass<ReadableMap> {
|
||||
static auto constexpr kJavaDescriptor = "Lcom/facebook/react/bridge/ReadableMap;";
|
||||
};
|
||||
|
||||
struct ReadableNativeMap : jni::HybridClass<ReadableNativeMap, NativeMap> {
|
||||
static auto constexpr kJavaDescriptor = "Lcom/facebook/react/bridge/ReadableNativeMap;";
|
||||
|
||||
|
||||
@@ -15,6 +15,10 @@
|
||||
namespace facebook {
|
||||
namespace react {
|
||||
|
||||
struct WritableMap : jni::JavaClass<WritableMap> {
|
||||
static auto constexpr kJavaDescriptor = "Lcom/facebook/react/bridge/WritableMap;";
|
||||
};
|
||||
|
||||
struct WritableNativeMap : jni::HybridClass<WritableNativeMap, ReadableNativeMap> {
|
||||
static auto constexpr kJavaDescriptor = "Lcom/facebook/react/bridge/WritableNativeMap;";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user