From ebe04b246c464b8a3ba579c253c0a78d8959a3e8 Mon Sep 17 00:00:00 2001 From: Danny Kim Date: Tue, 19 Mar 2024 19:14:20 +0900 Subject: [PATCH] fix: Changes relative import paths in `usePreferredCameraDevice.ts` (#2661) Update import paths in usePreferredCameraDevice The import paths for CameraDevice and useCameraDevices in the usePreferredCameraDevice file were updated. They now correctly reference 'react-native-vision-camera' instead of the non-existent relative path. This ensures correct and efficient module importation, enhancing code readability and maintainability. --- package/example/src/hooks/usePreferredCameraDevice.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/example/src/hooks/usePreferredCameraDevice.ts b/package/example/src/hooks/usePreferredCameraDevice.ts index f5a7a27..46ba5f9 100644 --- a/package/example/src/hooks/usePreferredCameraDevice.ts +++ b/package/example/src/hooks/usePreferredCameraDevice.ts @@ -1,7 +1,6 @@ import { useMMKVString } from 'react-native-mmkv' -import { CameraDevice } from '../../../src/CameraDevice' import { useCallback, useMemo } from 'react' -import { useCameraDevices } from '../../../src/hooks/useCameraDevices' +import { CameraDevice, useCameraDevices } from 'react-native-vision-camera' export function usePreferredCameraDevice(): [CameraDevice | undefined, (device: CameraDevice) => void] { const [preferredDeviceId, setPreferredDeviceId] = useMMKVString('camera.preferredDeviceId')