Skip to content
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

Unknown type name 'RCTCallableJSModules' #336

Closed
Oodebalan opened this issue Sep 10, 2023 · 4 comments
Closed

Unknown type name 'RCTCallableJSModules' #336

Oodebalan opened this issue Sep 10, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@Oodebalan
Copy link

Steps to reproduce the behavior:

I have followed the steps in order to install react-native-health (yarn add, pod install, update info.plist, add Healthkit support to my application's Capabilities)
I have "react-native-health": "^1.18.0"

When running my application from xcode I get a type error with RCTCallableJSModules

Capture d’écran 2023-09-10 à 11 53 25
@Oodebalan Oodebalan added the bug Something isn't working label Sep 10, 2023
@GGGava
Copy link
Collaborator

GGGava commented Sep 11, 2023

This seems like an issue with your installation, try the following:

  • rm -rf node_modules
  • yarn install
  • cd ios && pod install && cd ..
  • Close your metro terminal
  • Clean your XCode build (command + shift + k)
  • Try running again

@Oodebalan
Copy link
Author

Hey Gava, thanks for you reply

I have try this but it's still not working. I couldn't find any reason for this issue to happen..

@GGGava
Copy link
Collaborator

GGGava commented Sep 13, 2023

Did you find out what happened? @Oodebalan

@Rk5422686
Copy link

Rk5422686 commented Mar 15, 2024

RCTCallableJSModules API for NativeModules was introduced in React Native version 0.66.0. Thus, to address this issue, it's necessary to upgrade your app to version 0.66 or later.

Initial RN Version 0.62.3
Upgraded Version 0.67.3

It worked !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants