Skip to content

dodicandra/modal-sheet

Repository files navigation

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

About

React Native Modal Sheet

Resources

Stars

Watchers

Forks

Packages

No packages published