[HOLD for payment 2021-09-27] Add a scroll bounce or elasticity animation when reaching the top or bottom of a page
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
- Open New Expensify on Android or iOS
- Navigate to a conversation
- Scroll to the top (or scroll a bit upwards and then to the bottom)
Expected Result:
There should be a bounce or elasticity animation when reaching the top or bottom
Actual Result:
No animation is shown when reaching the top or bottom of a page or conversation
Platform:
Where is this issue occurring?
- iOS
- Android
Version Number: 1.0.86-9
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
From @shawnborton https://expensify.slack.com/archives/C01GTK53T8Q/p1629717577129000
FEATURE REQUEST: This might be nit-picky but I noticed that scroll views on iOS don’t have any kind of bounce or elasticity when you reach the end. For example, the list of chats, or any view in Settings, or even when you are viewing a chat with someone. Looks like this is supported in RN via scrollview but not sure how that would work with our implementation?
Triggered auto assignment to @strepanier03 (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
OoO, reassigning.
Triggered auto assignment to @arielgreen (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.
Triggered auto assignment to @cead22 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.
Triggered auto assignment to @MitchExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.
Proposal
- We have to use
bounces:trueprop on the ScrollViews to make them bounce naturally on IOS. e.g. https://github.com/Expensify/App/blob/70f8208ea61bc74c1104a4746b97e1f2a568475c/src/pages/settings/Profile/ProfilePage.js#L207 - I will update every page so that it has bounces behavior.
- There are few places where we will jointly decide if we want the bounce for example chat list, Users list in LHN and etc. I will update those based on the team's feedback.
- We can also add the
overScrollModeprop for Android devices so that it shows a natural glow effect when reaching the end of the list.
Upwork Job
Triggered auto assignment to @chiragsalian (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Yup that proposal makes sense to me. Before we begin let's confirm the spots that we want to make the scroll bouncy. @shawnborton could you let us know the places you would prefer to see this bouncy scroll animation or were you thinking of having this in every scroll in newDot?
Yeah I think for me personally, if we want the app to feel more native, basically any view that is scrollable should have this behavior by default.
Cool, @MitchExpensify can you hire rajat in upwork. @parasharrajat, feel free to create the PR.
Hired!
Any update on this issue @parasharrajat?
I will drop the PR soon.
@chiragsalian, @parasharrajat Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
I am on vacation. back on 8.
@MitchExpensify reassigned to you, this should remain assigned for the duration of the issue.
Ah whoops, thanks for reassigning! Noted
@shawnborton What color do we want for the OverScroll Effect on Android? Here is the video of what I am asking.
https://user-images.githubusercontent.com/24370807/132905427-e5c64feb-501a-4356-bcb0-8c652d83546e.mp4
Maybe the same color we use for our icons or borders? Something that is gray and a bit more subtle, but noticeable. Thoughts on that?