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

TurboModuleRegistry #180

Open
RamboWasReal opened this issue Nov 26, 2024 · 2 comments
Open

TurboModuleRegistry #180

RamboWasReal opened this issue Nov 26, 2024 · 2 comments

Comments

@RamboWasReal
Copy link

Describe the bug
when i try to build on IOS i get that

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'HealthConnect' could not be found. Verify that a module by this name is registered in the native binary.

Environment:

  • Health Connect Version: 3.3.1
  • ExpoHealthConnect Version: 0.1.1
  • React Native Version: 0.76.3
  • New architecture enabled: Yes
  • Using Expo:Dev Client
  • Android API Level: 35

when i try to put newArch at false, is working.. but not when enabled

@samducker
Copy link

Hi I am also have the same issue, with the same environment as above.

@cstayyab
Copy link

cstayyab commented Dec 4, 2024

For anyone who is using react-native-health-connect directly (either in expo or react native cli) you can workaround this issue by conditionally importing it like this in your app until it is fixed on library end (if need be):

let HealthConnect;
if (Platform.OS === 'android') {
  HealthConnect = require('react-native-health-connect').default;
}

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

No branches or pull requests

3 participants