feat: New useCameraPermission() and useMicrophonePermission() hooks (#1823)

* Create `useCameraPermission()` and `useMicrophonePermission()` hooks

* Fix exports

* Await `requestPermission()`
This commit is contained in:
Marc Rousavy
2023-09-21 11:40:04 +02:00
committed by GitHub
parent 977b859e46
commit 327aade4d8
4 changed files with 103 additions and 4 deletions

View File

@@ -1 +1,10 @@
/**
* Represents Orientation. Depending on the context, this might be a sensor
* orientation (relative to the phone's orentation), or view orientation.
*
* - `portrait`: **0°** (home-button at the bottom)
* - `landscape-left`: **90°** (home-button on the left)
* - `portrait-upside-down`: **180°** (home-button at the top)
* - `landscape-right`: **270°** (home-button on the right)
*/
export type Orientation = 'portrait' | 'portrait-upside-down' | 'landscape-left' | 'landscape-right';