invitra-react-native-vision-camera
v2.15.6
Published
The Camera library that sees the vision.
Downloads
4
Maintainers
Readme
Features
VisionCamera is a powerful, high-performance Camera library for React Native. It features: This is fork from (https://github.com/mrousavy/react-native-vision-camera)
Install VisionCamera from npm:
npm install invitra-react-native-vision-camera
cd ios && pod install
..and get started by setting up permissions!
Updated below files for iOS
- react-native-vision-camera/ios/CameraView+AVAudioSession.swift
- react-native-vision-camera/ios/CameraView+AVCaptureSession.swift
- react-native-vision-camera/ios/CameraView+RecordVideo.swift
- react-native-vision-camera/ios/Extensions/AVCaptureDevice.Format+videoDimensions.swift
- react-native-vision-camera/ios/CameraView.swift
which persists below issue
- Type 'AVAudioSession.Category' (aka 'NSString') has no member 'playAndRecord'
- 'AVAudioSession.Mode' (aka 'NSString') is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?
- 'AVAudioSession.Category' (aka 'NSString') is not implicitly convertible to 'String'; did you mean to use 'as' to explicitly convert?
- many more that not listed here.
If you are using vision-camera-code-scanner then do changes in below file
file : node_modules/vision-camera-code-scanner/src/hooks.tsx
import { Frame, useFrameProcessor } from 'invitra-react-native-vision-camera';