set useRNModalOnAndroid from ActionSheet _backdrop props #5187
Replies: 6 comments
-
Another possible solution would be to pass overlayVisible down to the overlay as opposed to just the backdrop and use that to decide if a RN modal should be used or not. |
Beta Was this translation helpful? Give feedback.
-
@s0rta Thanks for pointing this out. We'll look into this. |
Beta Was this translation helpful? Give feedback.
-
@surajahmed Had the same issue on android, for now just setting |
Beta Was this translation helpful? Give feedback.
-
@DavidAmyot We'll make this change. Thanks a lot! |
Beta Was this translation helpful? Give feedback.
-
@DavidAmyot setting it to true allowed for interaction of elements behind the action sheet? It seems to me that the android specific modal was causing the problems. Also, after 3.4.0, disabling the android overlay option does not work any more. was there a fundamental change to how overlays work? |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
Description
Action sheets on android right now do not allow for interaction for elements behind the action sheet even when the overlay is disabled, I tracked this issue to the prop useRNModalOnAndroid, which when going from a modal to an overlay, is impossible to set by hand. We are building an app that requires an action sheet and not allowing the user to interact with the elements above the action sheet at the same time would be an antipattern. Would it be possible to allow for the setting of useRNModalOnAndroid from the _backdrop ActionSheet props?
Problem Statement
An action sheet on android with the overlay disabled still does not allow for user interaction.
Proposed Solution or API
Allowing for the useRNModalOnAndroid prop to be set from the Action Sheet backdrop props
_backdrop={{useRNModalOnAndroid: false}}
Alternatives
I've got it jerry rigged in a local build but imagine other folks would like to be able to use an action sheet as well as the rest of the app at the same time.
Additional Information
No response
Beta Was this translation helpful? Give feedback.
All reactions