Commit 2703121
authored
fix: camera toggle along with flip (#1961)
Bug on RN: use camera.flip() to move to rear camera then use
camera.toggle() to switch it off, now toggle() it comes back as front
camera, but the expectation is to see rear camera
### 📝 Implementation notes
Just deselect the device after applying constraints; the native side
takes care of the device persistence.1 parent 885394e commit 2703121
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
51 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
0 commit comments