IOS CRASH while camera set with onGoogleVisionBarcodesDetected

Author: blazerroadgCreated Dec 2, 2021Updated Apr 15, 2023

Bug Report

To Do First

  • Did you try latest release? YES
  • Did you try master? YES
  • Did you look for existing matching issues? YES

Platforms iOS

  • iOS: 15
  • react-native-camera:4.2.1
  • react-native: 0.66.3
  • react:17.0.2 react-navigation:6.0.6

Description/Current Behaviour On first page render RNCAMERA with onGoogleVisionBarcodesDetected property sets, Navigate to new page which render camera also with onGoogleVisionBarcodesDetected set, when start recordAsync app will crash

Expected Behaviour Camera start recording

Steps to Reproduce Create two page at first page render camera with onGoogleVisionBarcodesDetected navigate to second page which render the same camera with onGoogleVisionBarcodesDetected set, start recording

Additionals Also if you try to switch camera type the camera will be freeze

I SOLVED this issue by render second camera without onGoogleVisionBarcodesDetected set.

Source: react-native-camera/react-native-camera