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