You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The camera renders in the center and is not stuck to the top of the screen on initial mount
What actually happened?
The <Camera> component from react-native-vision-camera renders stuck to the top of the screen on initial mount, ignoring the flex layout. The position resolves itself after a fast refresh or a style change is triggered.
The reproduction I linked is either (preferred) a PR against this repo that adds a failing harness test following the harness-tests README, or (fallback) a public repo that reproduces the bug on a fresh clone. I understand the issue will be closed without one.
I pasted logs as text (not screenshots).
I wrote this report in my own words. I did not paste AI-generated descriptions of the bug.
Prerequisites
Reproduction
https://github.com/BohdanPylypchuk/vission-camera-ui-issue-demo
Steps to reproduce
vission-camera-bug.mp4
What did you expect to happen?
The camera renders in the center and is not stuck to the top of the screen on initial mount
What actually happened?
The
<Camera>component fromreact-native-vision-camerarenders stuck to the top of the screen on initial mount, ignoring the flex layout. The position resolves itself after a fast refresh or a style change is triggered.Affected platforms
Android (device), Android (emulator)
Device(s) affected
Android 11 — Redmi Note 8 Pro, Android 16 emulators
VisionCamera version
5.0.9
React Native version
0.81.5
React Native architecture
New Architecture (Fabric / bridgeless)
Features being used
Relevant logs / stack trace
Additional context
No response
Submission