From 6543e48a723cb464efeca4a7d631e914dedb5280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Norte?= Date: Wed, 27 Mar 2024 03:16:26 -0700 Subject: [PATCH] Move MutationObserver native module to common directory (#43663) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/43663 Changelog: [internal] We have a new directory for built-in C++ native modules, but the native modules for `MutationObserver` and `IntersectionObserver` were created before we had it. This moves the native module for `MutationObserver` to `react-native/ReactCommon/react/nativemodule/mutationobserver` to follow the convention. Differential Revision: D55380179 --- .../nativemodule/mutationobserver}/NativeMutationObserver.cpp | 0 .../nativemodule/mutationobserver}/NativeMutationObserver.h | 3 +-- 2 files changed, 1 insertion(+), 2 deletions(-) rename packages/react-native/{Libraries/MutationObserver => ReactCommon/react/nativemodule/mutationobserver}/NativeMutationObserver.cpp (100%) rename packages/react-native/{Libraries/MutationObserver => ReactCommon/react/nativemodule/mutationobserver}/NativeMutationObserver.h (98%) diff --git a/packages/react-native/Libraries/MutationObserver/NativeMutationObserver.cpp b/packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp similarity index 100% rename from packages/react-native/Libraries/MutationObserver/NativeMutationObserver.cpp rename to packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.cpp diff --git a/packages/react-native/Libraries/MutationObserver/NativeMutationObserver.h b/packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h similarity index 98% rename from packages/react-native/Libraries/MutationObserver/NativeMutationObserver.h rename to packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h index 9d01507b4103fd..1c067677b3a574 100644 --- a/packages/react-native/Libraries/MutationObserver/NativeMutationObserver.h +++ b/packages/react-native/ReactCommon/react/nativemodule/mutationobserver/NativeMutationObserver.h @@ -10,8 +10,7 @@ #include #include #include -#include -#include +#include #include namespace facebook::react {