Skip to content

Commit d093047

Browse files
committed
Camera "fix"
1 parent ec3da4c commit d093047

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

src/screens/imager/Imager.tsx

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,26 +32,20 @@ export const Imager = () => {
3232

3333
const device = useCameraDevice('back', {
3434
physicalDevices: [
35-
'ultra-wide-angle-camera',
3635
'wide-angle-camera',
37-
'telephoto-camera',
38-
],
36+
'ultra-wide-angle-camera',
37+
'telephoto-camera'
38+
]
3939
});
4040

4141
if (!device) return <NoCameraDeviceError />;
4242
else {
43-
const format = useCameraFormat(device, [
44-
{videoAspectRatio: 3 / 4},
45-
{fps: 120},
46-
{videoStabilizationMode: 'cinematic-extended'},
47-
]);
4843

4944
if (hasPermission) {
5045
return (
5146
<Camera
52-
style={StyleSheet.absoluteFill}
47+
style={{flex: 1, aspectRatio: 16/9, height: '70%'}}
5348
device={device}
54-
format={format}
5549
codeScanner={codeScanner}
5650
isActive={true}
5751
/>

0 commit comments

Comments
 (0)