add pod for VisionCamera & other ios config, update expo-constants version
This commit is contained in:
@@ -18,8 +18,7 @@ import { useIsFocused } from '@react-navigation/native'
|
||||
export default function CameraScreen(): React.ReactElement {
|
||||
const camera = useRef<Camera>(null);
|
||||
const { hasPermission, requestPermission } = useCameraPermission();
|
||||
const [isCameraInitialized, setIsCameraInitialized] =
|
||||
useState<boolean>(false);
|
||||
const [isCameraInitialized, setIsCameraInitialized] = useState<boolean>(false);
|
||||
|
||||
const isForeground = useIsForeground();
|
||||
const isFocused = useIsFocused();
|
||||
@@ -60,6 +59,7 @@ export default function CameraScreen(): React.ReactElement {
|
||||
};
|
||||
|
||||
if (device === null) {
|
||||
console.log(device)
|
||||
return (
|
||||
<Text>
|
||||
Camera not available. Does user have permissions: {hasPermission}
|
||||
|
Reference in New Issue
Block a user