Description
In version 0.79.0 of Cross-Platform Native Modules (C++) the documentation tells you to create a React Native app running version 0.76.0
npx @react-native-community/cli@latest init SampleApp --version 0.76.0
However, this results in an app that fails to build (at least on iOS). In the iOS set up we have to create NativeSampleModuleProvider as below
NativeSampleModuleProvider.h
#import <Foundation/Foundation.h>
#import <ReactCommon/RCTTurboModule.h>
NS_ASSUME_NONNULL_BEGIN
@interface NativeSampleModuleProvider : NSObject <RCTModuleProvider>
@end
NS_ASSUME_NONNULL_END
However, RCTModuleProvider does not exist in ReactCommon/RCTTurboModule.h in version 0.76.0 of React Native and so the app fails to build.
Documentation version
0.79.0
Description
In version
0.79.0of Cross-Platform Native Modules (C++) the documentation tells you to create a React Native app running version0.76.0However, this results in an app that fails to build (at least on iOS). In the iOS set up we have to create
NativeSampleModuleProvideras belowNativeSampleModuleProvider.hHowever,
RCTModuleProviderdoes not exist inReactCommon/RCTTurboModule.hin version0.76.0of React Native and so the app fails to build.Documentation version
0.79.0