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

Is something similar to react-native's Modal presentationStyle="pageSheet" supported? #348

Open
DeluxeOwl opened this issue Mar 20, 2024 · 1 comment

Comments

@DeluxeOwl
Copy link

Basically, that iOS only animation for modals, what you can see here at 4:49 - 4:52 https://youtu.be/EcIA3nfNbsg?t=290

@kotchere
Copy link

@DeluxeOwl You'll have to build your own custom behavior, I believe. Have a wrapper around your main screen/background/navigator, have a global listener that subscribes to a show/hide event on the sheet (via onBeforeShow and onBeforeClose). Then change the listener properties animate the scale down for the main screen to about 0.92 or so and opacity to 0.5 when showing and reset to scale 1 and opacity 1 when closed. That should do the trick

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