React Native Modalfy
v3.x
v3.x
  • Getting started
  • Installation
  • ๐Ÿค“Guides
    • Creating a stack
    • Opening & closing
    • Passing params
    • Triggering a callback
    • Type checking with TypeScript
    • Subscribing to events
    • Using outside React
    • Upgrading from v2.x
  • ๐Ÿ“šAPI Reference
    • Types
      • ModalStackConfig
      • ModalOptions
      • ModalProp
      • ModalComponentProp
      • ModalProps
      • ModalComponentWithOptions
    • ModalProvider
    • createModalStack
    • useModal
    • withModal
    • modalfy
  • ๐Ÿ“ฐBlog
    • Unveiling Modalfy v3
    • Announcing Modalfy v2
    • Stacks on stacks in React Native
    • Introducing a Modal Citizen
  • ๐Ÿ—ƒ๏ธOthers
    • Help
    • Contributing
    • Changelog
    • GitHub
Powered by GitBook
On this page
  1. ๐Ÿ“šAPI Reference
  2. Types

ModalProps

PreviousModalComponentPropNextModalComponentWithOptions

Last updated 1 year ago

Was this helpful?

CtrlK

Was this helpful?

Interface of the modal prop exposed by the library specifically to modal components.

export type ModalComponentProp<
  P extends ModalfyParams,
  Props = unknown,
  M = keyof P
> = Props &

API reference

Please refer to ModalComponentProp directly as it's the interface used under the hood by ModalProps.

{
modal: UsableModalComponentProp<P, M>
}
export type ModalProps<
N extends keyof ModalfyParams = keyof ModalfyParams,
P = void
> = ModalComponentProp<
ModalfyParams,
P,
N
>
react-native-modalfy/src/types.ts at main ยท colorfy-software/react-native-modalfyGitHub
Logo