modal-sheet
v1.4.10
Published
### Simple react native modal sheet
Downloads
17
Maintainers
Readme
React Native Modal sheets
Simple react native modal sheet
Install
using yarn : yarn add modal-sheet
using npm : npm i modal-sheet
import Modal from 'modal-sheet';
const ref = useRef(null)
const onOpen = () => ref.current.open()
const onClose = () => ref.current.close()
// ...
<Modal ref={ref} size="m">
{children}
</Modal>
// ...
Props
| Props | Require | Description |
| ----- | ------- | ---------------------------- |
| size | no | "s"
, "m"
,"l"
, "xl"
|
Methods
open()
Open Modal
close()
Close Modal