Comments (10)
I think this might be a duplicate of #2583
from react-native-vision-camera.
I too am seeing this same issue since updating from version "3.6.4"
. #2583 is closed, we should reopen or keep this now.
I get an error message, which I do not understand since I am using the useCameraDevice
hook:
Camera.onError(device/no-device): [device/no-device] No device was set! Use
useCameraDevice(..)
orCamera.getAvailableCameraDevices()
to select a suitable Camera device.
const cameraRef = useRef<Component<AnimatedProps<CameraProps>>>(null);
const device = useCameraDevice('back', {
physicalDevices: ['ultra-wide-angle-camera', 'wide-angle-camera'],
});
const isFocused = useIsFocused();
const isForeground = useIsForeground();
const isActive = isFocused && isForeground;
useEffect(
function checkPermissions() {
const status = Camera.getCameraPermissionStatus();
setCameraPermission(status);
if (cameraPermission === 'granted') return;
Camera.requestCameraPermission();
},
[cameraPermission]
);
{!!device && (
<Reanimated.View>
<Camera
animatedProps={animatedProps}
device={device}
isActive={isActive}
photo
ref={cameraRef}
style={styles.cameraContainer}
/>
</Reanimated.View>
)}
All I did was upgrade my RNVC package to ^3.9.1
since I also updated react native to 0.73.4
as part of the Expo SDK50 update.
from react-native-vision-camera.
I think this might be a duplicate of #2583
Also a dupe of #2142
from react-native-vision-camera.
Hey! I just released a new V4 beta (v4.0.0-beta.7) where I fixed a bunch of issues! 💪🚀 Can you test that and see if that fixes the issue for you? 😅
yarn add react-native-vision-camera@beta
You might need to increase the compileSdk
to the newest Android SDK (34) if you are behind.
from react-native-vision-camera.
Hey! I just released a new V4 beta (v4.0.0-beta.7) where I fixed a bunch of issues! 💪🚀 Can you test that and see if that fixes the issue for you? 😅
yarn add react-native-vision-camera@beta
You might need to increase the
compileSdk
to the newest Android SDK (34) if you are behind.
The stretched issue is fixed but then the onCodeScanned wont be trigger when scanning qr/barcodes
from react-native-vision-camera.
Anyone here using Expo with Android SDK (34)?
from react-native-vision-camera.
The stretched issue is fixed but then the onCodeScanned wont be trigger when scanning qr/barcodes
I just fixed the Code Scanner issue in the latest V4 beta.
from react-native-vision-camera.
Tested with the V4 beta and works normally!
from react-native-vision-camera.
Hey! I just released a new V4 beta (v4.0.0-beta.7) where I fixed a bunch of issues! 💪🚀 Can you test that and see if that fixes the issue for you? 😅
yarn add react-native-vision-camera@beta
You might need to increase the
compileSdk
to the newest Android SDK (34) if you are behind.
I was having a similar issue. The frame width and height were coming out equal when they are not. The update fixed it! I I was also getting 10 FPS on a OnePlus5 device and now I'm getting 17. (I'm using a native Frame Processor). Great job man!! I love this library
from react-native-vision-camera.
Thanks guys, great to hear that V4 now works perfectly! If you appreciate my work, please consider 💖 sponsoring me on GitHub 💖 so I can keep maintaining this library, fixing bugs and building new features! :)
from react-native-vision-camera.
Related Issues (20)
- 🐛 Function inside `runAsync` in `useSkiaFrameProcessor` runs only once HOT 5
- 🐛 Photo is not what is in the preview HOT 10
- 🐛 On iOS 15, takePhoto produces a very low quality photo HOT 4
- 💭 Overlay using SVG does not match the camera preview on Android HOT 6
- Open Flash light by click on the Icon HOT 4
- 💭 Is this supposed to be compatible with RN 0.72 ? HOT 2
- Flash documented as `auto` by default, but actually `off` HOT 2
- 🐛 Task :react-native-vision-camera:compileDebugKotlin FAILED on React Native 0.74.X Android Platform HOT 10
- 🐛 Camera Preview does not align with taken picture HOT 6
- 🐛 Front camera recording is inverted when going from Back to Front camera during recording on Android HOT 4
- 🐛 Square ratio preview has low quality HOT 6
- Is there a way to make the codeScanner only scan the barcode once? HOT 2
- 🐛 Switching between aspect ratios HOT 2
- 🐛 useSkiaFrameProcessor makes camera being blank HOT 8
- 🐛 App crashes when using Camera with frame processor after last update HOT 1
- 🐛 `[session/invalid-output-configuration]`: Cannot create session on some Xiaomi phones HOT 5
- 🐛 Unable to Retrieve Active Camera and App Crashes on iOS 17.2 Simulator iPhone 15 HOT 1
- [V4][Android]🔧 sdk 33 no more supported HOT 4
- 💭 Compatible React Native Versions HOT 1
- 🐛 Memory Leak on camera.takePhoto after 6 six shots. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-vision-camera.