I am following this documentation to implement a C++ TurboModule: https://reactnative.dev/docs/the-new-architecture/pure-cxx-modules
I had no problem with android, but on iOS, using XCode, i get an error in the "NativeSampleModuleProvider.h" saying "No type or protocol named 'RCTModuleProvider'".
In the docs (chapter 3.1.6), the file looks like this:
#import <Foundation/Foundation.h>
#import <ReactCommon/RCTTurboModule.h>
NS_ASSUME_NONNULL_BEGIN
@interface NativeSampleModuleProvider : NSObject <RCTModuleProvider>
@end
NS_ASSUME_NONNULL_END
I am using the same code provided by the docs. AI is telling me that RCTModuleProvider is part of the old arch's infrastructure, and therefore cannot be used. Is that so? How can i get through this error?
Thank you