- Android
- iOS
- Web
useNSafeAreaInsets
Read the distances from each edge of the screen.
Engine API useNSafeAreaInsetsnayan-ui/components
Example.tsx
This hook takes no parameters.
| Name | Type | Details |
|---|---|---|
| top | number | |
| right | number | |
| bottom | number | |
| left | number |
Read the distances from each edge of the screen.
Engine API useNSafeAreaInsetsnayan-ui/components
This hook takes no parameters.
| Name | Type | Details |
|---|---|---|
| top | number | |
| right | number | |
| bottom | number | |
| left | number |