Taking a picture with Expo

I’m currently looking to take a picture using the Expo api only or at least a non-native library so that I don’t have to detach to expokit. The documentation here: https://docs.expo.io/versions/v18.0.0/sdk/imagepicker.html mentions “taking a photo with the camera” but I don’t see any further instructions on this page, can someone please help me understand how to do this or at least point me in the right direction?

I guess you could take the example given in the page you mention, and replace

ImagePicker.launchImageLibraryAsync

by

ImagePicker.launchCameraAsync

However it does not work for me… the console.log is called only when I cancel from the camera (so I am returned {cancelled: true}
I guess I am not far…