---
name: "getSystemInfoSync"
mode: "kit"
versionRequirements:
  - { name: "BaseKit", version: "2.0.1" }
  - { name: "@ray-js/ray", version: "0.3.23" }
platform:
  - "iOS"
  - "Android"
---

## getSystemInfoSync

> [VERSION] BaseKit >= 2.0.1 | @ray-js/ray >= 0.3.23

> [PLATFORM] iOS, Android

### Description

Get system information

### Parameters

None


### Referenced Types

##### `interface` SafeArea

| Property | Type | Since | Description |
| --- | --- | --- | --- |
| `left` | `number` | `3.2.6` | Left inset Left boundary of the safe area, in logical pixels; for example, returns 0 |
| `right` | `number` | `3.2.6` | Right inset Right boundary of the safe area, in logical pixels; for example, returns 411 |
| `top` | `number` | `3.2.6` | Top inset Top boundary of the safe area, in logical pixels; for example, returns 34 |
| `bottom` | `number` | `3.2.6` | Bottom inset Bottom boundary of the safe area, in logical pixels; for example, returns 898 |
| `width` | `number` | `3.2.6` | Safe area width in logical pixels; for example, returns 411 |
| `height` | `number` | `3.2.6` | Safe area height in logical pixels; for example, returns 864 |


### Valid Values

##### `theme` valid values

| Value | Description |
| --- | --- |
| `"dark"` | Dark mode |
| `"light"` | Light mode |

##### `deviceOrientation` valid values

| Value | Description |
| --- | --- |
| `"portrait"` | Portrait |
| `"landscape"` | Landscape |


### Examples

#### Demo

```tsx
import { getSystemInfo } from '@ray-js/ray'

getSystemInfo({
  success: data => {
    console.log(data);
  },
  fail: error => {
    console.error(error);
  },
});
```
