mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
committed by
Facebook GitHub Bot
parent
8351a5d186
commit
983c8ebb45
+4
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user