diff --git a/packages/react-native-worklets/src/worklets/initializers.ts b/packages/react-native-worklets/src/worklets/initializers.ts index 556ed245d9f..86af5124a14 100644 --- a/packages/react-native-worklets/src/worklets/initializers.ts +++ b/packages/react-native-worklets/src/worklets/initializers.ts @@ -45,7 +45,7 @@ if (SHOULD_BE_USE_WEB) { // Register WorkletsError and logger config in the UI runtime global scope. // (we are using `executeOnUIRuntimeSync` here to make sure that the changes // are applied before any async operations are executed on the UI runtime) - executeOnUIRuntimeSync(registerWorkletsError); + executeOnUIRuntimeSync(registerWorkletsError)(); executeOnUIRuntimeSync(registerLoggerConfig)(DEFAULT_LOGGER_CONFIG); executeOnUIRuntimeSync(overrideLogFunctionImplementation)(); }