diff --git a/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp b/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp index 8e1dfd2fa0eea0..46fa1c65f94799 100644 --- a/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp +++ b/packages/react-native/ReactCommon/react/runtime/ReactInstance.cpp @@ -95,7 +95,7 @@ ReactInstance::ReactInstance( jsErrorHandler->handleError(jsiRuntime, originalError, true); } catch (std::exception& ex) { jsi::JSError error( - jsiRuntime, std::string("Non-js exception: ") + ex.what()); + jsiRuntime, std::string("Non-JS exception: ") + ex.what()); jsErrorHandler->handleError(jsiRuntime, error, true); } }); diff --git a/packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleProvider.h b/packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleProvider.h index e5c031ab16b003..b10c248aab891e 100644 --- a/packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleProvider.h +++ b/packages/react-native/ReactCxxPlatform/react/nativemodule/TurboModuleProvider.h @@ -7,15 +7,16 @@ #pragma once -#include -#include - #include +#include #include #include namespace facebook::react { +class CallInvoker; +class TurboModule; + using TurboModuleProvider = std::function(const std::string &name, const std::shared_ptr &jsInvoker)>;