Skip to content

No preview with react native 0.80 + new architecture #729

Open
@rawatnaresh

Description

@rawatnaresh

Describe the bug
The existing example app using React Native 0.76.0 works correctly with both New Architecture enabled and disabled. However, after upgrading to React Native 0.80.0, the camera preview no longer appears when the New Architecture is enabled.

With New Architecture disabled, everything works as expected.

With New Architecture enabled, the camera preview is blank, but QR code scanning still functions — indicating the camera is active but the preview is not being rendered.

To Reproduce
Steps to reproduce the behavior:

  1. Clone example app
  2. Upgrade react-native to 0.80.0
  3. Remove ENV['RCT_NEW_ARCH_ENABLED'] = '0'; from Podfile
  4. Run the app

Expected behavior
The camera preview should be visible when the New Architecture is enabled, just as it is in React Native 0.76.0.

Screenshots
In the below screen recording you can see that the QR code is being detected
(-----DETECTED!!!!!!!!!!!!!!!!!!!!!----) text in the screen

camera-kit.mov

Desktop (please complete the following information):

  • OS: macOS

Smartphone (please complete the following information):

  • Device: iPhone 13 Pro
  • OS: iOS 18.5

Additional context

rawatnaresh/react-native-camera-kit@master...rawatnaresh:react-native-camera-kit:rn-80-new-arch

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