-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix the modal dismiss behavior #2296
Conversation
*/ | ||
function dismissModal() { | ||
function dismissModal(shouldOpenDrawer = false) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAB, just learning, what is the drawer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main app (anything not a modal) is split into two panels in a DrawerNavigator
. The left part of the drawer is the "drawer content" and set to the LHN/Sidebar and the right side is the report/chat screen. On larger screens, the drawer is permanently expanded, but on smaller screens / mobile it can be toggled back and forth programmatically or by swiping.
Travis failed! |
Merging master now to see if it fixes. |
Details
Adds the ability to dismiss modals back to either the LHN or the last screen they were triggered from (so just the Report screen at the moment).
Fixed Issues
Fixes https://github.com/Expensify/Expensify/issues/157574
Tests
QA Steps
x
in the top right corner to dismiss the modalx
in the top right corner to dismiss the modalx
in the top right corner to dismiss the modalTested On
Screenshots
Web
Mobile Web
Desktop
iOS
Android