Skip to content

Cross-Platform native modules documentation for v0.79.0 creates an app using v0.76.0 of React Native which does not work #4577

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    👋 Good first issueInterested in collaborating? Take a stab at fixing one of these issues.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions