Skip to content

Commit

Permalink
fix: Fix JNI <-> JSI conversion for Integers
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy committed Sep 15, 2021
1 parent 68d737d commit c3cf75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android/src/main/cpp/JSIJNIConversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c3cf75e

Please sign in to comment.