fix: Fix JNI <-> JSI conversion for Integers

This commit is contained in:
Marc Rousavy 2021-09-15 10:13:55 +02:00
parent 68d737d6df
commit c3cf75eb5f

View File

@ -119,7 +119,7 @@ jsi::Value JSIJNIConversion::convertJNIObjectToJSIValue(jsi::Runtime &runtime, c
} else if (object->isInstanceOf(jni::JInteger::javaClassStatic())) {
// Integer
static const auto getIntegerFunc = jni::findClassLocal("java/lang/Integer")->getMethod<jint()>("integerValue");
static const auto getIntegerFunc = jni::findClassLocal("java/lang/Integer")->getMethod<jint()>("intValue");
auto i = getIntegerFunc(object.get());
return jsi::Value(i);