From 2ec97b3821d40c45153e77aca478a8403ee47405 Mon Sep 17 00:00:00 2001 From: Arham Hayat Date: Fri, 20 Oct 2023 01:51:02 +0530 Subject: [PATCH] Update Camera Permission Previous method is now deprecated and this is the new method. I used the previous one and got the error, Hence Recommending this change. --- App.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/App.tsx b/App.tsx index 971ca5d..c18184c 100644 --- a/App.tsx +++ b/App.tsx @@ -11,7 +11,7 @@ export default function App() { const [flashMode, setFlashMode] = React.useState('off') const __startCamera = async () => { - const {status} = await Camera.requestPermissionsAsync() + const {status} = await Camera.requestCameraPermissionsAsync() console.log(status) if (status === 'granted') { setStartCamera(true)