RCTTurboModuleManager | Fix narrowing conversion. (#39829)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/39829

Changelog:
    [iOS][Fixed] - Fixed narrowing conversion compilation error.

Reviewed By: sodastsai

Differential Revision: D49948385

fbshipit-source-id: 84385b90c1998d99980f1afd8b62e94202301afe
This commit is contained in:
Florian Sauer
2023-10-05 05:42:53 -07:00
committed by Facebook GitHub Bot
parent ce39931bc2
commit ed9931f456
@@ -375,7 +375,7 @@ static Class getFallbackClassFromName(const char *name)
.jsInvoker = _jsInvoker,
.nativeMethodCallInvoker = nativeMethodCallInvoker,
.isSyncModule = methodQueue == RCTJSThread,
.shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(),
.shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(),
};
auto turboModule = [(id<RCTTurboModule>)module getTurboModule:params];
@@ -438,7 +438,7 @@ static Class getFallbackClassFromName(const char *name)
.jsInvoker = _jsInvoker,
.nativeMethodCallInvoker = std::move(nativeMethodCallInvoker),
.isSyncModule = methodQueue == RCTJSThread,
.shouldVoidMethodsExecuteSync = RCTTurboModuleSyncVoidMethodsEnabled(),
.shouldVoidMethodsExecuteSync = (bool)RCTTurboModuleSyncVoidMethodsEnabled(),
};
auto turboModule = std::make_shared<ObjCInteropTurboModule>(params);