Skip to content
  • Android
  • iOS
  • Web

Safe Area Listener

Observe changes in available screen space and insets.

Engine API NSafeAreaListenernayan-ui/components

Live examples

Example.tsx

Measuring the preview…

Resize the viewport to update the measurement.

Attributes

NSafeAreaListener attributes
NameTypeDefaultDetails
onChange(metrics: SafeAreaMetrics) => voidRequired
childrenReact.ReactNodeOptional
style____ViewStyleProp_InternalOptional

Tags