Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong barcode-scanner-to-expo-camera #142

Open
linonetwo opened this issue Jan 21, 2024 · 3 comments
Open

Wrong barcode-scanner-to-expo-camera #142

linonetwo opened this issue Jan 21, 2024 · 3 comments

Comments

@linonetwo
Copy link

https://github.com/expo/fyi/blob/main/barcode-scanner-to-expo-camera.md

see expo/expo#26315 (comment) for error,

And you should use const { status } = await Camera.requestCameraPermissionsAsync();, there is no Camera.requestPermissionsAsync(); in the article.

@ismahiltcha
Copy link

I have same issue

@ismahiltcha
Copy link

what is the solution?

@ismahiltcha
Copy link

the solution is to use this import , and adapt your code : import { CameraView, Camera } from 'expo-camera';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants