This plugin provides functions to detect the devices safe area and the status bar and navigation bar height.
| Platform | Supported |
|---|---|
| Android | ✔ |
| iOS | ✖ |
| Web | ✖ |
npm i capacitor-areas
npx cap sync androidgetSafeArea() => anyGet the safe area of the device
Returns: any
getStatusBarHeight() => anyGet the status bar height of the device
Returns: any
getNavigationBarHeight() => anyGet the navigation bar height of the device. Returns 0 when the device has hardware buttons.
Returns: any
| Prop | Type |
|---|---|
top |
number |
left |
number |
bottom |
number |
right |
number |