• Returns the current window insets and re-renders the component if device orientation changes.

    Parameters

    • OptionaltypeMask: number

      Bit mask of InsetTypes to query the insets for. By default, display cutout, navigation and status bars are included.

    Returns Rect