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

[Question] How do I make a half-opened Modal/ActionSheet? #530

Closed
mrousavy opened this issue Jun 2, 2020 · 5 comments
Closed

[Question] How do I make a half-opened Modal/ActionSheet? #530

mrousavy opened this issue Jun 2, 2020 · 5 comments

Comments

@mrousavy
Copy link

mrousavy commented Jun 2, 2020

How do I make a 2 stage Action Sheet/Form Sheet like the iOS Share Sheet?

Closed Partially opened Fully opened
@hirbod
Copy link
Contributor

hirbod commented Jun 2, 2020

@mrousavy maybe you wanna use something like this for it
https://github.com/jeremybarbet/react-native-modalize

It has everything you need and is one of the best libs when it comes to modal + scrollview.

And there is also an example how you can shrink the view behind it (like pagesheet) using the animatedpangesture value

@WoLewicki
Copy link
Member

It is currently not possible with react-native-screens.

@WoLewicki
Copy link
Member

Actually, one way to do this is to set stackPresentation: 'transparentModal' and properly arrange the views in it. Since the content below will be still visible and the modal takes the whole screen, you can display such things there and even nest a stack in it, if it is needed. react-native modal use such native presentation style when applying transparent option too. I will close this issue then. Feel free to comment if you need more information. You can also check #525.

@Gregoirevda
Copy link

@WoLewicki Is there a way to integrate adaptiveSheetPresentationController in the repo?

@Gregoirevda
Copy link

Ok, noticed this is ongoing in PR #1649

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

4 participants