-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
FAB menu - the menus for FAB menu slide in from the left-to-right, instead of bottom-to-top #3347
Comments
Triggered auto assignment to @HorusGoul ( |
I think this can be external. If you agree @HorusGoul then the next step would be for you to:
|
Triggered auto assignment to @kevinksullivan ( |
upwork job posted |
Triggered auto assignment to @Luke9389 ( |
ProposalExplanation
We don't have any behavior like this. We just want to Bottom Dock the Menu which already has defined animations thus props from the parent are not needed. That's why we are clearing the props in the next step for Mobile sizes. Now when we pass the animation Props from SidebarScreen
But index.native.js 's animation will be overwritten. Solutionso Solution here is to change the View logic of https://github.com/Expensify/Expensify.cash/blob/3eee51b9c4af23d04845468df227e94fc0034f0a/src/components/Popover/index.native.js . TO
OR We This does not affect any other Menus at all. We originally expected this behavior but forgot to patch native devices with respect to M-web. That's what I proposed as a solution. |
UnderstandingFrom SidebarScreen.js, we pass animationIn and animationOut to the CreateMenu component. ProblemSidebarScreen.js should not send the animations because they can be different based on the platform. So it does not make sense to send fadeInLeft and fadeOutLeft from here because they don't apply to mobile devices. Solution
With this, menus have a platform specific default animation and also the flexibility of overriding them if needed in future. Also, @parasharrajat I think we should let PopupOver to relay animation props from parent components instead of setting them undefined. This way it won't affect other parts of the app which are using PopOver. Update: I've been able to test my solution and this is how it looks Screen.Recording.2021-06-05.at.10.03.57.AM.mov |
ProposalYou just have to change the animation type to work as you want
Thanks! |
Issue - SidebarScreen.js - We have hard coded value It can be different based on the platform. Proposal -
Then we can simply assign the value - animationIn ={getAnimationInType()}
src/components/CreateMenu/index.native.js Please find the attached video for Mobile and Web after my solution:
Web.mov |
I don't understand why this is happening. This menu should be getting set as Edit: I see it now. Talked 1:1 with @roryabraham. |
This issue was discussed internally and it was decided that we'd use a different solution that has not been mentioned above. Thanks for you're time folks! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Upwork Job - https://www.upwork.com/jobs/~0156d103876d9e96f7
Expected Result:
Menu should slide from bottom to top
Actual Result:
Menu slides from left-to-right
Action Performed:
Workaround:
No need, visual issue.
Platform:
Where is this issue occurring?
Web
iOS ✔️
Android ✔️
Desktop App
Mobile Web
Version Number: 1.0.62-0
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
WhatsApp.Video.2021-06-03.at.12.47.55.PM.mp4
onal supporting documentation
Expensify/Expensify Issue URL:
View all open jobs on Upwork
From @roryabraham https://expensify.slack.com/archives/C01GTK53T8Q/p1622681730473400
The text was updated successfully, but these errors were encountered: