mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 12:25:59 +08:00
Support invoking and returning arbitrary types from Java sync hooks
Reviewed By: mhorowitz Differential Revision: D4409900 fbshipit-source-id: 347e33c442b32f64355d343308c218c15cf5a70f
This commit is contained in:
committed by
Facebook Github Bot
parent
cfb90284d6
commit
f8c72f5441
@@ -2,7 +2,6 @@
|
||||
|
||||
#include "JSCNativeModules.h"
|
||||
|
||||
#include <jschelpers/JavaScriptCore.h>
|
||||
#include <string>
|
||||
|
||||
namespace facebook {
|
||||
|
||||
@@ -84,7 +84,7 @@ JSValueRef Value::fromDynamic(JSContextRef ctx, const folly::dynamic& value) {
|
||||
|
||||
JSValueRef Value::fromDynamicInner(JSContextRef ctx, const folly::dynamic& obj) {
|
||||
switch (obj.type()) {
|
||||
// For premitive types (and strings), just create and return an equivalent JSValue
|
||||
// For primitive types (and strings), just create and return an equivalent JSValue
|
||||
case folly::dynamic::Type::NULLT:
|
||||
return JSC_JSValueMakeNull(ctx);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user