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

Added modalAttemptedToDismiss event with tests and docs #5832

Merged
merged 7 commits into from
Jan 12, 2020

Conversation

manicantic
Copy link
Contributor

@manicantic manicantic commented Jan 7, 2020

modalAttemptedToDismiss iOs event

Related Issue
Closes #5824

Description
Since version 4.0.3 modal options are added along with swipeToDismiss flag. This event will trigger only when swipeToDismiss flag is set to false and user attempt to swipe down pageSheet modal. ( Which was use case in out app, so that was a motivation to implement this 😄 ).

@guyca
Copy link
Collaborator

guyca commented Jan 9, 2020

@manicantic e2e are failing due to changes in Modal screen. Can you please fix the tests so we can review and merge your PR?

@yogevbd
Copy link
Collaborator

yogevbd commented Jan 12, 2020

Awesome PR! thanks

@yogevbd yogevbd merged commit 87af42a into wix:master Jan 12, 2020
vshkl pushed a commit to vshkl/react-native-navigation that referenced this pull request Feb 5, 2020
* Added modalAttemptedToDismiss event with tests and docs

* Typo on pageSheet modal button label

* Update ModalScreen.js

* Fixed button testID

* Revert label to fix test cases

Co-authored-by: Guy Carmeli <guyca@users.noreply.github.com>
Co-authored-by: Yogev Ben David <yogevbd@wix.com>
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.

[V4] Support DidAttemptToDismiss for pageSheet modals
3 participants