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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Zach-Dean-Attractions-io opened this issue Apr 16, 2025 · 1 comment
Labels
👋 Good first issue Interested in collaborating? Take a stab at fixing one of these issues.

Comments

@Zach-Dean-Attractions-io
Copy link
Contributor

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

@cortinico
Copy link
Contributor

Yup that's a bug in the docs. It should obviously be 0.79
Could you send a PR to fix this @Zach-Dean-Attractions-io ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👋 Good first issue Interested in collaborating? Take a stab at fixing one of these issues.
Projects
None yet
Development

No branches or pull requests

2 participants