Skip to content

Invariant Violation occurs when running the Example app on iOS #716

Open
@hoonjoo-park

Description

@hoonjoo-park

Describe the bug
When forking the repository and trying to run the example app, it crashes with the error: "Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCameraKitModule' could not be found. Verify that a module by this name is registered in the native binary."
This appears to be a compatibility issue between the library and React Native 0.76.3. The library works fine with React Native 0.74.1 (the version used in the root project), but fails when the example project uses version 0.76.3.

To Reproduce
Steps to reproduce the behavior:

  1. yarn bootstrap
  2. yarn start from example directory
  3. yarn ios
  4. after build succeed -> Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNCameraKitModule' could not be found... error occurs.

Expected behavior
The example app should load properly and the camera functionality should work without any errors related to missing native modules.

Screenshots
If the issue is a visual glitch or UI issue please provide screen shots.

Desktop (please complete the following information):

  • OS: MacOS
  • Browser chrome
  • Version 15.1.1(24B91)

Smartphone (please complete the following information):

  • Device: iPhone 16 Pro (Simulator)
  • OS: iOS

Additional context
error log

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions