Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Modal Props #4320

Open
StDensity opened this issue Oct 29, 2024 · 0 comments
Open

Issue with Modal Props #4320

StDensity opened this issue Oct 29, 2024 · 0 comments

Comments

@StDensity
Copy link

Description

The website documentation for modal says you can use backdrop prop white using modal. But for some reason it is not working in VSCode.

error:
backdropColor: string; onRequestClose: () => void; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Modal> & Readonly<ModalProps>'. Property 'backdropColor' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Modal> & Readonly<ModalProps>'. Overload 2 of 2, '(props: ModalProps, context: any): Modal', gave the following error. Type '{ children: Element; animationType: "slide"; transparent: false; visible: boolean; backdropColor: string; onRequestClose: () => void; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Modal> & Readonly<ModalProps>'. Property 'backdropColor' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Modal> & Readonly<ModalProps>'.ts(2769) (property) backdropColor: string

Documentation version

here is the link to the page: https://reactnative.dev/docs/modal#backdropcolor v: 0.76

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant