From e629a8552d5562115cd0d1eea7ab45e6fc4a5b07 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Fri, 6 Sep 2024 15:11:03 -0700 Subject: [PATCH] fix: Bring back Cxx TurboModule autolinking via `registerCxxModuleToGlobalModuleMap` (#46360) Summary: Reverts the PR https://github.com/facebook/react-native/pull/45967 from philIip to bring back the `registerCxxModuleToGlobalModuleMap(..)` function, which I use in Nitro Modules and MMKV. Ontop of that, this also removes the "experimental" `RCT_EXPORT_CXX_MODULE_EXPERIMENTAL` macro, which I think was the original intent of this PR as this macro is a bit unsafe. I also added some small docs to `registerCxxModuleToGlobalModuleMap` while I'm at it. ## Changelog: