• To display a new modal in React-Native, you should ensure that a new modal is opened only after the existing modal has been dismissed to avoid conflicts. To achieve this, you can use a deferred onClose that can be awaited until the onDismiss is called.

    Returns {
        onClose: (() => Promise<void>);
        onDismiss: (() => void);
        setVisible: Dispatch<SetStateAction<boolean>>;
        visible: boolean;
    }

    • onClose: (() => Promise<void>)
        • (): Promise<void>
        • Returns Promise<void>

    • onDismiss: (() => void)
        • (): void
        • Returns void

    • setVisible: Dispatch<SetStateAction<boolean>>
    • visible: boolean

Generated using TypeDoc