From bfa393e5f588daf6d230185013454c85a7f42afe Mon Sep 17 00:00:00 2001 From: Seph Soliman Date: Tue, 11 Feb 2025 11:14:32 -0800 Subject: [PATCH] Removed docs for deprecated methods Removed docs for checkDeviceCameraAuthorizationStatus Removed docs for requestDeviceCameraAuthorization Please use rn-permissions or expo-permissions to check instead --- README.md | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/README.md b/README.md index da107ad..3bfbcc9 100644 --- a/README.md +++ b/README.md @@ -244,30 +244,6 @@ if (uri.startsWith('file://')) { } ``` -#### checkDeviceCameraAuthorizationStatus (**iOS only**) - -```ts -const isCameraAuthorized = await Camera.checkDeviceCameraAuthorizationStatus(); -``` - -return values: - -`AVAuthorizationStatusAuthorized` returns `true` - -`AVAuthorizationStatusNotDetermined` returns `-1` - -otherwise, returns `false` - -#### requestDeviceCameraAuthorization (**iOS only**) - -```ts -const isUserAuthorizedCamera = await Camera.requestDeviceCameraAuthorization(); -``` - -`AVAuthorizationStatusAuthorized` returns `true` - -otherwise, returns `false` - ## Using with Expo If you are using Expo Managed Workflow, you can use this library with a third-party plugin `expo-react-native-camera-kit`.