ModalComponentWithOptions
Interface for a React component containing its props and the modalOption static property.
Note: Only use with Hooks modal components (present in your createModalStack()'s config). If you're working with a Class modal component, you can directly use static modalOptions: ModalOptions.
TypeScript
export type ModalComponentWithOptions<
Props = unknown
> = React.ComponentType<Props> & {
modalOptions?: ModalOptions
}
react-native-modalfy/types.ts at main Β· colorfy-software/react-native-modalfy
GitHub
Copy link