I am working on a simple react native portfolio-building app that uses react native camera. The takePicture function is defined as follows:
takePicture = async (