createModalStack
Last updated
Last updated
createModalStack()
is the function that's going to turn your configuration into a usable modal stack.
Argument: ModalStackConfig
config - Modal stack configuration.
Argument: ModalOptions
customDefaultOptions - Configuration options to apply to all modals by default (optional).
Returns: Modal stack configuration object to provide to <ModalProvider>
's stack
prop.
Example: