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

Change the modal backdrop / overlay color & opacity? #33

Open
cristianrosu opened this issue Dec 17, 2024 · 3 comments
Open

Change the modal backdrop / overlay color & opacity? #33

cristianrosu opened this issue Dec 17, 2024 · 3 comments

Comments

@cristianrosu
Copy link

cristianrosu commented Dec 17, 2024

I cannot find a way to change the backdrop color and opacity of the modal.

@AliSananS
Copy link

AliSananS commented Dec 19, 2024

I'm having the same problem. How to change the backgroundColor?

style={{backgroundColor: "color"}} // Doesn't work!

EDIT: Due to lack of documentation, I was able find in the source code that you have to use bg prop for changing background color and a few other properties.

@cristianrosu
Copy link
Author

My issue is not with background color (bg property works for that). It's the backdrop / overlay color + opacity.

@AliSananS
Copy link

It's the backdrop / overlay color + opacity.

As far as I've tested opacity is working. Could you please share more details about backdrop / overlay color? Because backdrop property doesn't exists in react native, it's a css property for web.

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

2 participants