1

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”

mingmingming
  • 345
  • 2
  • 4
  • 12
  • please add more details what do you mean by switch toggle, do you do it programmatically? if yes add a code you use for it. – Kirill Novikov Dec 11 '22 at 14:03
  • @KirillNovikov I just used this... 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 – mingmingming Dec 12 '22 at 02:36

0 Answers0