-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[2.9.0] Error: The given view was not found in view manager🐛 #500
Comments
That's such an annoying bug. Can't seem to find a fix for that :( |
maybe #511 fixes this issue... it's giving me headaches. |
I have similar problem while using It happens when:
Workaround was adding custom back button at headerLeft that disables camera before popping screen. Example code: function CameraScreen() {
const [quit, setQuit] = useState(false);
const navigation = useNavigation();
useEffect(() => {
if (Platform.OS !== 'android') {
return;
}
navigation.setOptions({
headerLeft: () => (
<Button
title="Dismiss"
onPress={() => {
setQuit(true);
}}
/>
),
});
}, [navigation]);
useEffect(() => {
if (quit) {
navigation.goBack();
}
}, [navigation, quit]);
return (
<Camera active={!quit} />
);
} |
Confirm this issue, if use Only on Android. "react-native-reanimated": "^2.2.4",
"react-native-modal": "^13.0.0",
"react": "17.0.2",
"react-native": "0.66.1",
"react-native-vision-camera": "^2.9.3",
"vision-camera-face-detector": "^0.1.8", @mrousavy may you could give some suggestions, how to wrap the This info could be useful to add in documentation. To avoid potential issues. Thank you for your great library! |
I ended up having to use similar workarounds as described above. The workaround involves deactivating or unmounting the
The ViewID bug seems to only crop up when using RNVC in conjunction with screen management libraries ( |
Is it correct? Because my issue, I couldn't mount the
|
It's been awhile. I think I only hit Edit - Just checked my code I'm only setting I should also mention I ended up moving away from |
I can confirm this issue only happens when
Sorry for confusing, I had problem when unmounting screen but similar error so I thought it can be helpful. I'm not sure this issue should be re-opened or separated, please help us @mrousavy |
Agree.
to activate the Camera, but it didn't help. Update: |
FWIW, here is a mimimal App demonstrating the crash with This is different to my original issue which I was able to work around by avoiding mounting/unmounting during transitions. https://github.com/ldstein/MeshCameraTest/tree/modal-test |
@ldstein thank you! This is helpful. I currently don't have the time to investigate this, but if I do, I'll get back to this. |
I'm also seeing this issue. The Camera shows fine in the React Native Modal, but when I call |
will be very helpful, if you could help with this issue. |
Perhaps we need to open a new issue as this one has been closed. |
Same issue, Follow the workaround of @iAmGhost. |
What were you trying to do?
Build and run example App at bd46da6 on Android device.
Maybe related to #457
Build Environment:
Windows 10 x64
Openjdk 11.0.10 2021-01-19
Python 2.7.18
Reproduceable Code
What happened instead?
After app launches and user grants permission to Camera and Mic, red error box appears with Stack Trace:
Relevant log output
Device
Pixel 3, Android 11
VisionCamera Version
2.9.0
Additional information
The text was updated successfully, but these errors were encountered: