UNPKG
@osobh/reactar
Version:
latest (0.0.3)
0.0.3
0.0.2
0.0.1
AR Library for React Native and Expo
github.com/osobh/reactAR
osobh/reactAR
@osobh/reactar
/
src
/
utils
/
PermissionHandler.ts
6 lines
(5 loc)
•
206 B
text/typescript
View Raw
1
2
3
4
5
6
import
{
Camera
}
from
'expo-camera'
;
export
async
function
requestCameraPermission
(
):
Promise
<boolean> {
const
{ status } =
await
Camera
.
requestCameraPermissionsAsync
();
return
status ===
'granted'
; }