* fix: Also properly convert `any[]` -> `List<Object>` in FP Android * Format C++ * fix: Add missing return
25 lines
588 B
C++
25 lines
588 B
C++
//
|
|
// Created by Marc Rousavy on 22.06.21.
|
|
//
|
|
|
|
#pragma once
|
|
|
|
#include <fbjni/fbjni.h>
|
|
#include <jni.h>
|
|
#include <jsi/jsi.h>
|
|
|
|
namespace vision {
|
|
|
|
namespace JSIJNIConversion {
|
|
|
|
using namespace facebook;
|
|
|
|
jni::local_ref<jobject> convertJSIValueToJNIObject(jsi::Runtime& runtime, const jsi::Value& value);
|
|
jni::local_ref<jni::JMap<jstring, jobject>> convertJSIObjectToJNIMap(jsi::Runtime& runtime, const jsi::Object& object);
|
|
|
|
jsi::Value convertJNIObjectToJSIValue(jsi::Runtime& runtime, const jni::local_ref<jobject>& object);
|
|
|
|
} // namespace JSIJNIConversion
|
|
|
|
} // namespace vision
|