useOverlayPosition

Handles positioning overlays like popovers and menus relative to a trigger element, and updating the position when the window resizes.

Install#

yarn add @react-native-aria/overlays

Import#

import { useOverlayPosition } from "@react-native-aria/overlays";

API#

useOverlayPosition(props: AriaPositionProps): PositionAria

AriaPositionProps#

Props for the overlay position.

PositionAria#

Position info

Example#

Last updated on by Nishan