xplat/js/react-native-github/packages/react-native/ReactAndroid/src/main/jni/react/reactnativeblob/BlobCollector.cpp

Reviewed By: rshest

Differential Revision: D80438502
This commit is contained in:
Devmate Bot
2025-08-19 02:11:08 -07:00
committed by Facebook GitHub Bot
parent 8351a5d186
commit 983c8ebb45
@@ -44,7 +44,10 @@ void BlobCollector::nativeInstall(
jni::alias_ref<jclass> /*unused*/,
jni::alias_ref<jobject> blobModule,
jlong jsContextNativePointer) {
auto& runtime = *((jsi::Runtime*)jsContextNativePointer);
auto& runtime =
*reinterpret_cast< // NOLINT(performance-no-int-to-ptr,cppcoreguidelines-pro-type-reinterpret-cast):
// JNI bridge requires casting jlong to runtime pointer
jsi::Runtime*>(jsContextNativePointer);
auto blobModuleRef = jni::make_global(blobModule);
runtime.global().setProperty(
runtime,