I am developing a camera application using React for users to take pictures on their smart phones. I am using a simple html input as the camera <input type="file" id="imageFile" capture="user" accept="image/*"> and I need to prevent the user from taking a selfie i.e. changing the capture mode to capture="environment") Is there a library that already has this functionality or what is the best way to do this with React, html or vanilla JS?