UNPKG

react-native-windows

Version:
42 lines (32 loc) 1.13 kB
/** * Copyright (c) Microsoft Corporation. * Licensed under the MIT License. * @format */ import type * as React from 'react'; import type {ViewProps} from '../View/ViewPropTypes'; import type {Constructor} from '../../../types/private/Utilities'; import type {NativeMethods} from '../../../types/public/ReactNativeTypes'; export interface IPopupProps extends ViewProps { isOpen?: boolean; /** * Configures the Popup with a transparent backdrop. */ isLightDismissEnabled?: boolean; /** * Sets whether the Popup will automatically receive focus when opened. * Defaults to true. Always true when isLightDismissEnabled === true. */ autoFocus?: boolean; horizontalOffset?: number; verticalOffset?: number; /** * Sets a React element to use as an anchor point. When set, the popup will be positioned relative to it. */ target?: React.ReactNode; onDismiss?: () => void; testID?: string; } declare class PopupComponent extends React.Component<IPopupProps> {} declare const PopupBase: Constructor<NativeMethods> & typeof PopupComponent; export class Popup extends PopupBase {}