diff --git a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeTargetDelegate.cpp b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeTargetDelegate.cpp index 0b95f4922b2..4398431e61b 100644 --- a/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeTargetDelegate.cpp +++ b/packages/react-native/ReactCommon/hermes/inspector-modern/chrome/HermesRuntimeTargetDelegate.cpp @@ -5,6 +5,7 @@ * LICENSE file in the root directory of this source tree. */ +#include #include #include "HermesRuntimeSamplingProfileSerializer.h" @@ -39,12 +40,12 @@ class HermesRuntimeSamplingProfileDelegate { : hermesRuntime_(std::move(hermesRuntime)) {} void startSampling() { - auto* hermesAPI = castInterface(makeHermesRootAPI()); + auto* hermesAPI = jsi::castInterface(makeHermesRootAPI()); hermesAPI->enableSamplingProfiler(HERMES_SAMPLING_FREQUENCY_HZ); } void stopSampling() { - auto* hermesAPI = castInterface(makeHermesRootAPI()); + auto* hermesAPI = jsi::castInterface(makeHermesRootAPI()); hermesAPI->disableSamplingProfiler(); } diff --git a/packages/react-native/ReactCommon/jsinspector-modern/network/NetworkReporter.h b/packages/react-native/ReactCommon/jsinspector-modern/network/NetworkReporter.h index 90701c412bf..bd56c6048db 100644 --- a/packages/react-native/ReactCommon/jsinspector-modern/network/NetworkReporter.h +++ b/packages/react-native/ReactCommon/jsinspector-modern/network/NetworkReporter.h @@ -15,6 +15,7 @@ #include #include #include +#include namespace facebook::react::jsinspector_modern { diff --git a/packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/NativeDrawable.h b/packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/NativeDrawable.h index 1c2c99dbd86..c2668f291e1 100644 --- a/packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/NativeDrawable.h +++ b/packages/react-native/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/NativeDrawable.h @@ -7,6 +7,7 @@ #pragma once +#include #include #include #include