UNPKG

@janiscommerce/ui-native

Version:
16 lines (15 loc) 519 B
import React from 'react'; import { ModalProps as NativeModalProps, ViewStyle } from 'react-native'; export interface UIModalProps extends NativeModalProps { oncloseCallback?: () => void; showCloseButton?: boolean; fullScreen?: boolean; modalContainerStyle?: ViewStyle; canClose?: boolean; } export interface ModalMethods { open?: () => void; close?: () => void; } declare const Modal: React.ForwardRefExoticComponent<UIModalProps & React.RefAttributes<ModalMethods>>; export default Modal;