Skip to content

Commit aa7a6b1

Browse files
committed
fix: truly disable camera in computer-vision on emulator
1 parent 2741dcd commit aa7a6b1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

apps/computer-vision/components/BottomBar.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@ export const BottomBar = ({
1616
<TouchableOpacity onPress={() => handleCameraPress(false)}>
1717
<FontAwesome name="photo" size={24} color={ColorPalette.primary} />
1818
</TouchableOpacity>
19-
<TouchableOpacity onPress={() => handleCameraPress(true)}>
19+
<TouchableOpacity
20+
onPress={() =>
21+
!DeviceInfo.isEmulatorSync() && handleCameraPress(true)
22+
}
23+
>
2024
<FontAwesome
2125
name="camera"
2226
size={24}

0 commit comments

Comments
 (0)