From c3cf75eb5f03aaf4a3b7933ad1f469a88e6df152 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Wed, 15 Sep 2021 10:13:55 +0200 Subject: [PATCH] fix: Fix JNI <-> JSI conversion for Integers --- android/src/main/cpp/JSIJNIConversion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/cpp/JSIJNIConversion.cpp b/android/src/main/cpp/JSIJNIConversion.cpp index 87ffef4..82a0f29 100644 --- a/android/src/main/cpp/JSIJNIConversion.cpp +++ b/android/src/main/cpp/JSIJNIConversion.cpp @@ -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("integerValue"); + static const auto getIntegerFunc = jni::findClassLocal("java/lang/Integer")->getMethod("intValue"); auto i = getIntegerFunc(object.get()); return jsi::Value(i);