From d9233208a8f57f3d4237ddb3a00af30f6e94a46f Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Mon, 26 Jul 2021 10:12:26 +0200 Subject: [PATCH] fix: Remove `RCTTurboModuleBlockCopyEnabled()` --- ios/React Utils/JSIUtils.mm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ios/React Utils/JSIUtils.mm b/ios/React Utils/JSIUtils.mm index ccd0476..89d073b 100644 --- a/ios/React Utils/JSIUtils.mm +++ b/ios/React Utils/JSIUtils.mm @@ -191,9 +191,5 @@ RCTResponseSenderBlock convertJSIFunctionToCallback(jsi::Runtime &runtime, const wrapperWasCalled = YES; }; - if (RCTTurboModuleBlockCopyEnabled()) { - return [callback copy]; - } - - return callback; + return [callback copy]; }