I am using expo-camera on my app that can be run to a web on android/ios. Setting camera type works but when I try to switch/toggle camera on android i got an error “camera not working”
<Camera type={type}...>
<Button onPress={toggleCamera} >
<Icon name="refresh" as={MaterialIcons} color="white" />
</Button>
</Camera>
const toggleCamera = () => { setType( type === Camera.Constants.Type.back ? Camera.Constants.Type.front : Camera.Constants.Type.back ); };
initial load is okay but when i try to switch camera it says "camera not working" .. but it only shows on mobile web android