ModalProvider
This is the component you'll use to pass your modals stack to React Native Modalfy. Place ModalProvider
at the root component of your app and put all the components you had inside of it.
The only prop the component expects is stack
, covered in createModalStack
.
Note: ModalProvider
wraps its children
inside a View
component so feel free to put as many siblings as you want inside of it (no need to wrap them inside a View/Fragment
before passing the content to ModalProvider
).
Last updated