diff --git a/packages/react-native/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.cpp b/packages/react-native/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.cpp index f2f9cb031eea27..f9e5de7f3fc07b 100644 --- a/packages/react-native/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.cpp +++ b/packages/react-native/ReactAndroid/src/main/jni/react/newarchdefaults/DefaultComponentsRegistry.cpp @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -24,6 +25,10 @@ std::shared_ptr DefaultComponentsRegistry::sharedProviderRegistry() { auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry(); + react_native_assert( + DefaultComponentsRegistry::registerComponentDescriptorsFromEntryPoint && + "'registerComponentDescriptorsFromEntryPoint' was not initialized in 'JNI_OnLoad'"); + (DefaultComponentsRegistry::registerComponentDescriptorsFromEntryPoint)( providerRegistry);