react-native-camera-kit icon indicating copy to clipboard operation
react-native-camera-kit copied to clipboard

ReactImageView: Image source "null" doesn't exist

Open networkharry04 opened this issue 2 years ago • 11 comments

I am using react-native-camera-kit package in my project for barcode scanning. I am getting error ReactImageView: Image source "null" doesn't exist and I am not able to scan any qr code or barcode . Please suggest how to fix it.

networkharry04 avatar Sep 15 '23 09:09 networkharry04

Same issue

Dhiraj-j avatar Sep 15 '23 23:09 Dhiraj-j

same issue

Falco26 avatar Sep 18 '23 08:09 Falco26

I am able to scan the barcode but I also got a warning of the Image source is null

Saurav-Ra avatar Sep 26 '23 06:09 Saurav-Ra

same issue

vincalkr avatar Sep 26 '23 18:09 vincalkr

I had same issue on iPhone 15. AVCaptureStillImageOutput in CKCamera.m failed to write buffer. I can offer solution if people have similar setting as mine.

gianisalive avatar Oct 03 '23 21:10 gianisalive

having the same issue.

ReactImageView: Image source "null" doesn't exist warning is thrown when app starts, but the camera actually works and scans qrs okay.

Overtorment avatar Oct 22 '23 10:10 Overtorment

I think AVCaptureStillImageOutput buffer can't handle write from the new hardware. Try this branch, I switched AVCaptureStillImageOutput to AVCapturePhotoOutput. https://github.com/gianisalive/react-native-camera-kit-patch

To switch just add line below to package.json, and reinstall node modules. "react-native-camera-kit": "github:gianisalive/react-native-camera-kit-patch#main"

If it works well for other people, I might consider making a pull request.

gianisalive avatar Oct 22 '23 16:10 gianisalive

I think AVCaptureStillImageOutput buffer can't handle write from the new hardware. Try this branch, I switched AVCaptureStillImageOutput to AVCapturePhotoOutput. https://github.com/gianisalive/react-native-camera-kit-patch

To switch just add line below to package.json, and reinstall node modules. "react-native-camera-kit": "github:gianisalive/react-native-camera-kit-patch#main"

If it works well for other people, I might consider making a pull request.

Still getting the same issue...😢

sun00K avatar Nov 11 '23 15:11 sun00K

any update on this issue?

nitesh-habilelabs avatar Nov 15 '23 09:11 nitesh-habilelabs

You might need to specify this with the uri field: <Image source={{uri: imageUrl}} />

toscalivia83 avatar Nov 27 '23 14:11 toscalivia83

i use Camera instead of CameraScreen, annoying warning goes away. Just style it like View component

mahmingtea avatar Dec 11 '23 20:12 mahmingtea