> ## 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

<CardGroup>
  <Card title="Methods" icon="code" iconType="solid">
    * [cycleCamera()](/reference/react-native/instance-methods/cycle-camera)
    * [setCamera()](/reference/react-native/instance-methods/set-camera)
    * [enumerateDevices()](/reference/react-native/instance-methods/enumerate-devices)
  </Card>
</CardGroup>
