UNPKG

react-native-popover-view

Version:

A <Popover /> component for react-native iOS, Android, and Web

17 lines (16 loc) 1.13 kB
import { RefObject } from 'react'; import { MeasureInWindowOnSuccessCallback, StyleProp, ViewStyle } from 'react-native'; import { Placement, Point, Rect, Size } from './Types'; declare type RefType = RefObject<{ measureInWindow: (callback: MeasureInWindowOnSuccessCallback) => void; }>; export declare function getRectForRef(ref: RefType): Promise<Rect>; export declare function waitForChange(getFirst: () => Promise<Rect>, getSecond: () => Promise<Rect>): Promise<void>; export declare function waitForNewRect(ref: RefType, initialRect: Rect): Promise<Rect>; export declare function sizeChanged(a: Size | null, b: Size | null): boolean; export declare function rectChanged(a: Rect | null, b: Rect | null): boolean; export declare function pointChanged(a: Point, b: Point): boolean; export declare function getArrowSize(placement: Placement, arrowStyle: StyleProp<ViewStyle>): Size; export declare function getBorderRadius(popoverStyle: StyleProp<ViewStyle>): number; export declare function getChangedProps(props: Record<string, unknown>, prevProps: Record<string, unknown>, importantProps: string[]): string[]; export {};