Skip to content

Commit d04a36e

Browse files
authored
fix: flip the condition for isDevice in computer vision demo app (#1161)
## Description <!-- Provide a concise and descriptive summary of the changes implemented in this PR. --> ### Introduces a breaking change? - [ ] Yes - [ ] No ### Type of change - [ ] Bug fix (change which fixes an issue) - [ ] New feature (change which adds functionality) - [ ] Documentation update (improves or adds clarity to existing documentation) - [ ] Other (chores, tests, code style improvements etc.) ### Tested on - [ ] iOS - [ ] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. -->
1 parent 9f752b6 commit d04a36e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/computer-vision/components/BottomBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { View, TouchableOpacity, StyleSheet, Text } from 'react-native';
44
import { useSafeAreaInsets } from 'react-native-safe-area-context';
55
import DeviceInfo from 'react-native-device-info';
66

7-
const isDevice = DeviceInfo.isEmulatorSync();
7+
const isDevice = !DeviceInfo.isEmulatorSync();
88

99
export const BottomBar = ({
1010
handleCameraPress,

0 commit comments

Comments
 (0)