fix: Frame Processor error when frame processors aren't used
This commit is contained in:
parent
310ad5fc4c
commit
ff890abebf
@ -343,9 +343,11 @@ export class Camera extends React.PureComponent<CameraProps> {
|
|||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
componentWillUnmount(): void {
|
componentWillUnmount(): void {
|
||||||
this.assertFrameProcessorsEnabled();
|
if (this.lastFrameProcessor != null || this.props.frameProcessor != null) {
|
||||||
// @ts-expect-error JSI functions aren't typed
|
this.assertFrameProcessorsEnabled();
|
||||||
global.unsetFrameProcessor(this.handle);
|
// @ts-expect-error JSI functions aren't typed
|
||||||
|
global.unsetFrameProcessor(this.handle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user