> ## Documentation Index
> Fetch the complete documentation index at: https://docs.daily.co/llms.txt
> Use this file to discover all available pages before exploring further.

# getCameraFacingMode()

> Returns the facing mode of the currently active camera on a mobile device.

`getCameraFacingMode()`

Returns the facing mode of the currently active camera: `'user'` (front-facing) or `'environment'` (rear-facing). Returns `null` if the facing mode cannot be determined.

## Return value

Returns a `Promise<DailyCameraFacingMode | null>` where `DailyCameraFacingMode` is `'user' | 'environment'`.

## Example

```javascript theme={null}
const facingMode = await call.getCameraFacingMode();
if (facingMode === 'environment') {
  console.log('Using rear camera');
} else if (facingMode === 'user') {
  console.log('Using front camera');
}
```

## See also

> [card] Methods
>
> * [cycleCamera()](https://docs.daily.co/reference/react-native/instance-methods/cycle-camera.md)
> * [setCamera()](https://docs.daily.co/reference/react-native/instance-methods/set-camera.md)
> * [enumerateDevices()](https://docs.daily.co/reference/react-native/instance-methods/enumerate-devices.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.