android:Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference
daltachange opened this issue · comments
dalta commented
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 commented
Yes, same problem here. Everything is fine until I call pausePreview
or resumePreview
in an useEffect
callback.
Any updates on this?