diff --git a/android/src/main/cpp/NativeProxy.cpp b/android/src/main/cpp/NativeProxy.cpp index fff50222172..9b78328dc2d 100644 --- a/android/src/main/cpp/NativeProxy.cpp +++ b/android/src/main/cpp/NativeProxy.cpp @@ -165,19 +165,6 @@ void NativeProxy::installJSIBindings() { std::shared_ptr animatedRuntime = facebook::jsc::makeJSCRuntime(); #endif - auto workletRuntimeValue = - runtime_->global() - .getProperty(*runtime_, "ArrayBuffer") - .asObject(*runtime_) - .asFunction(*runtime_) - .callAsConstructor(*runtime_, {static_cast(sizeof(void *))}); - uintptr_t *workletRuntimeData = reinterpret_cast( - workletRuntimeValue.getObject(*runtime_).getArrayBuffer(*runtime_).data( - *runtime_)); - workletRuntimeData[0] = reinterpret_cast(animatedRuntime.get()); - - runtime_->global().setProperty( - *runtime_, "_WORKLET_RUNTIME", workletRuntimeValue); auto version = getReanimatedVersionString(*runtime_); runtime_->global().setProperty(*runtime_, "_REANIMATED_VERSION_CPP", version); diff --git a/ios/native/REAInitializer.mm b/ios/native/REAInitializer.mm index f5e38d4ddae..ef6d4a82ed8 100644 --- a/ios/native/REAInitializer.mm +++ b/ios/native/REAInitializer.mm @@ -46,16 +46,6 @@ - (void)setBridge:(RCTBridge *)bridge; auto callInvoker = std::make_shared(bridge.reactInstance); auto reanimatedModule = reanimated::createReanimatedModule(bridge, callInvoker); #endif - auto workletRuntimeValue = runtime.global() - .getProperty(runtime, "ArrayBuffer") - .asObject(runtime) - .asFunction(runtime) - .callAsConstructor(runtime, {static_cast(sizeof(void *))}); - uintptr_t *workletRuntimeData = - reinterpret_cast(workletRuntimeValue.getObject(runtime).getArrayBuffer(runtime).data(runtime)); - workletRuntimeData[0] = reinterpret_cast(reanimatedModule->runtime.get()); - - runtime.global().setProperty(runtime, "_WORKLET_RUNTIME", workletRuntimeValue); auto version = getReanimatedVersionString(runtime); runtime.global().setProperty(runtime, "_REANIMATED_VERSION_CPP", version);