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

react-native-document-picker and modals #208

Open
QuevedoIB opened this issue Jun 18, 2019 · 2 comments
Open

react-native-document-picker and modals #208

QuevedoIB opened this issue Jun 18, 2019 · 2 comments

Comments

@QuevedoIB
Copy link

Just pointing out a problem I've faced, react-native-document-picker was freezing the app on calling .show() at iOS whenever a modal transition was still running.

A fast workaround was using a setTimeOut with the same timer as the transition duration.

@keithpickering
Copy link

Is a setTimeout still the preferred solution to this? It seems a little bit hacky to me - if you change your transition duration later, you have to remember to update the timeout, otherwise a (potentially very important) part of your app might become inaccessible.

@vmia159
Copy link

vmia159 commented Oct 18, 2022

Try to call it with Modal onDismiss. (ios only function)

Or you can draw your own modal with Portal with react-native-paper.

react-native modal behaviours is weird sometimes so I start to use Portal to draw all the modal components at the root of my app

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

No branches or pull requests

4 participants