'Undefined symbols for architecture' on iOS #23
-
|
I've just started out adding Fabric support to my Navigation router. I created a basic spec file for my NavigationStack component. Then I initialised a test project For example, here's what #pragma once
#include <react/renderer/components/navigation-react-native/ShadowNodes.h>
#include <react/renderer/core/ConcreteComponentDescriptor.h>
namespace facebook {
namespace react {
using NVNavigationStackViewComponentDescriptor = ConcreteComponentDescriptor<NVNavigationStackViewShadowNode>;Then I opened up the test workspace in Xcode and ran a build. I was expecting this to generate the Protocol class that I'm to implement. But instead I get the error If you need any more information just let me know. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
Hello! You will also need to implement |
Beta Was this translation helpful? Give feedback.

Hello! You will also need to implement
NVNavigationStackViewComponentViewclass on iOS which is a wrapper for view manager from the old architecture. As a reference, feel free to check outRNGestureHandlerButtonComponentViewin react-native-gesture-handler here. In order to make it work with React-Codegen, you will also need to implementNVNavigationStackViewClsfunction which will returnRNGestureHandlerButtonComponentView.class(see here). Use.mmextension so it compiles as Objective-C++ file and make sure that these files are recognized as source files as well in Podspec (see here). Also, note that we use#ifdef RN_FABRIC_ENABLEDin Fabric-specific files as Gesture Handler supports bo…