Getting an exception "CameraManager.record is not a function" when trying to record with camera

#1

Trying to get camera recording work and keep getting an exception.

I followed the basic example, but when I call recordAsync() it errors out.

Here’s my code:
if (this.camera) {
this.camera.recordAsync().then(data => {
console.log(data);
Vibration.vibrate();
});
}

Here’s the exception that I get:
Possible Unhandled Promise Rejection (id: 0):
TypeError: CameraManager.record is not a function
TypeError: CameraManager.record is not a function
at Camera.recordAsync$

#2

Can you share more information about what SDK version you are using, and also check that you’re using the correct SDK version in your “expo” package.json dependency?

1 Like