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

fix: improve popup default styles #290

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

meteorlxy
Copy link
Contributor

@meteorlxy meteorlxy commented Apr 16, 2024

Description

I'm not sure if the current style is fully tested, but it does not work well in our app.

If this PR is not going to be merged, at least we should have #289 to allow user customizing the modalView style.

FYI, the example provided by react-native docs also does not restrict the height and background color of the container:

image

Screenshots

Before After

Copy link
Member

@tschoffelen tschoffelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Maybe outside the scope of this PR, so feel free to ignore, but would it also make sense to add something like backgroundColor: rgba(0,0,0,0.4) to the container to create more of a modal effect with by dimming the content behind it?

@meteorlxy
Copy link
Contributor Author

@tschoffelen - Yep, I'm doing this in our app's customization. It should be used when react-native Modal's transparent prop is set to true.

@meteorlxy
Copy link
Contributor Author

@tschoffelen updated

Copy link
Member

@tschoffelen tschoffelen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome!

@tschoffelen tschoffelen merged commit 3bf488a into includable:master Apr 17, 2024
2 checks passed
Copy link

🎉 This PR is included in version 3.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

None yet

2 participants