File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -32,26 +32,20 @@ export const Imager = () => {
32
32
33
33
const device = useCameraDevice ( 'back' , {
34
34
physicalDevices : [
35
- 'ultra-wide-angle-camera' ,
36
35
'wide-angle-camera' ,
37
- 'telephoto-camera' ,
38
- ] ,
36
+ 'ultra-wide-angle-camera' ,
37
+ 'telephoto-camera'
38
+ ]
39
39
} ) ;
40
40
41
41
if ( ! device ) return < NoCameraDeviceError /> ;
42
42
else {
43
- const format = useCameraFormat ( device , [
44
- { videoAspectRatio : 3 / 4 } ,
45
- { fps : 120 } ,
46
- { videoStabilizationMode : 'cinematic-extended' } ,
47
- ] ) ;
48
43
49
44
if ( hasPermission ) {
50
45
return (
51
46
< Camera
52
- style = { StyleSheet . absoluteFill }
47
+ style = { { flex : 1 , aspectRatio : 16 / 9 , height : '70%' } }
53
48
device = { device }
54
- format = { format }
55
49
codeScanner = { codeScanner }
56
50
isActive = { true }
57
51
/>
You can’t perform that action at this time.
0 commit comments