UNPKG

softchatjs-react-native

Version:

React native UI SDK for softchatjs-core. Create a free account at: https://www.softchatjs.com

23 lines (20 loc) 673 B
import React from 'react'; import { ViewStyle } from 'react-native'; import { Children } from '../types.js'; import 'softchatjs-core'; type ModalProps = { dismissable?: boolean; justifyContent?: ViewStyle["justifyContent"]; children: Children | null; animation?: "none" | "fade" | "slide" | undefined; containerWidth?: ViewStyle["width"]; }; declare const useModalProvider: () => ModalProvider; type ModalProvider = { displayModal: (child: ModalProps) => void; resetModal: (cb?: Function) => void; }; declare function ModalProvider(props: { children: Children; }): React.JSX.Element; export { ModalProvider as default, useModalProvider };