diff --git a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm index 43111495217436..a0c98c1995140e 100644 --- a/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm +++ b/packages/react-native/ReactCommon/react/nativemodule/core/platform/ios/ReactCommon/RCTTurboModuleManager.mm @@ -375,7 +375,7 @@ - (instancetype)initWithBridgeProxy:(RCTBridgeProxy *)bridgeProxy .jsInvoker = _jsInvoker, .nativeMethodCallInvoker = nativeMethodCallInvoker, .isSyncModule = methodQueue == RCTJSThread, - .shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(), + .shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(), }; auto turboModule = [(id)module getTurboModule:params]; @@ -438,7 +438,7 @@ - (instancetype)initWithBridgeProxy:(RCTBridgeProxy *)bridgeProxy .jsInvoker = _jsInvoker, .nativeMethodCallInvoker = std::move(nativeMethodCallInvoker), .isSyncModule = methodQueue == RCTJSThread, - .shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(), + .shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(), }; auto turboModule = std::make_shared(params);