Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

android:Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference #3435

Open
daltachange opened this issue Sep 8, 2022 · 1 comment

Comments

@daltachange
Copy link

daltachange commented Sep 8, 2022

3961662618770_ pic

version:4.2.1

code:

useEffect(() => {
const focusScreenListener = props.navigation.addListener('focus', () => {
if (cameraRef.current) {
cameraRef.current.resumePreview(); // error
}
});
return () => {
props.navigation.removeListener('focus', focusScreenListener);
};
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

@olivertylsar
Copy link

Yes, same problem here. Everything is fine until I call pausePreview or resumePreview in an useEffect callback.

Any updates on this?

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

No branches or pull requests

2 participants