Skip to content

ModalActionSheet to be displayed anywhere in component tree#3

Open
faceyspacey wants to merge 4 commits intoremobile:masterfrom
faceyspacey:master
Open

ModalActionSheet to be displayed anywhere in component tree#3
faceyspacey wants to merge 4 commits intoremobile:masterfrom
faceyspacey:master

Conversation

@faceyspacey
Copy link

The idea behind this thin wrapper is that it allows you to put action sheet's anywhere in your component tree, not just in a component that consumes the entire screen. It's supposed to be a drop-in replacement for plain ActionSheet. I think this is the way most people expect to use the action sheet by the way--i.e. as a modal.

…t tree

The idea behind this thin wrapper is that it allows you to put action sheet's anywhere in your component tree,
not just in a component that consumes the entire screen. It's supposed to be a drop-in replacement for plain
ActionSheet.
the modal was cutting the slide-down animation short. so now they are synced so that the action sheet slides down, and then the modal hides itself. A bit of hackery was necessary as the `onDismiss` callback of `Modal` isn't working in RN22. perhaps the `onRequestClose` callback `Modal` has in RN23 will come to the rescue, but it I did manually via `setTimeout` for now to guarantee it works across RN versions.
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

Successfully merging this pull request may close these issues.

1 participant