modal-sheet
TypeScript icon, indicating that this package has built-in type declarations

1.4.10 • Public • Published

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

Package Sidebar

Install

npm i modal-sheet

Weekly Downloads

14

Version

1.4.10

License

MIT

Unpacked Size

50.6 kB

Total Files

14

Last publish

Collaborators

  • dodi_candra