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

iOS/Android - Profile page does not scroll #2147

Closed
isagoico opened this issue Mar 30, 2021 · 15 comments · Fixed by #2148 or #2596
Closed

iOS/Android - Profile page does not scroll #2147

isagoico opened this issue Mar 30, 2021 · 15 comments · Fixed by #2148 or #2596
Assignees
Labels
External Added to denote the issue can be worked on by a contributor

Comments

@isagoico
Copy link

isagoico commented Mar 30, 2021

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Expected Result:

After clicking into Profile, Profile screen should scroll

Actual Result:

After clicking into Profile, Profile screen remains static and does not scroll.

Action Performed:

  1. Go to https://staging.expensify.cash/
    and login
  2. Click on profile photo icon in upper right corner of screen
  3. Click on Profile
  4. See that screen does not scroll

Workaround:

No, user is unable to scroll at all.

Platform:

Where is this issue confirmed?

mWeb
iOS ✔️
Android ✔️
Desktop App
Mobile Web

Version Number: 1.0.16-0

Logs: https://stackoverflow.com/c/expensify/questions/4856

Videos:

Video

Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/161483

@marcaaron
Copy link
Contributor

Duplicate of https://github.com/Expensify/Expensify/issues/158769 which I am fixing here

#2148

@isagoico
Copy link
Author

Reopening this issue since it's reproducible in iOS and Android app.

@isagoico isagoico reopened this Apr 12, 2021
@isagoico isagoico changed the title mWeb - Profile - Unable scroll the Profile under Settings iOS/Android - Profile - Unable scroll the Profile under Settings Apr 12, 2021
@trjExpensify
Copy link
Contributor

I came across this one today on iOS v1.0.20-4:

Image from iOS (21)

@parasharrajat
Copy link
Member

We should replace the container View with ScrollView and wrap the content in another view where we will apply the padding otherwise on the web the bottom padding is not working. Look at the gap between set timezone automatically checkbox and save button. There should be a gap here.
image

@shawnborton
Copy link
Contributor

I agree with you @parasharrajat

@marcaaron
Copy link
Contributor

Gonna unassign myself from here so that I'm not blocking this fix.

@marcaaron marcaaron removed their assignment Apr 19, 2021
@marcaaron marcaaron added the External Added to denote the issue can be worked on by a contributor label Apr 19, 2021
@MelvinBot
Copy link

Triggered auto assignment to @stephanieelliott (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@MelvinBot
Copy link

Triggered auto assignment to @deetergp (Exported), see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@stephanieelliott stephanieelliott changed the title iOS/Android - Profile - Unable scroll the Profile under Settings iOS/Android - Profile page does not scroll Apr 24, 2021
@stephanieelliott
Copy link
Contributor

@stephanieelliott stephanieelliott removed their assignment Apr 24, 2021
@parasharrajat
Copy link
Member

parasharrajat commented Apr 24, 2021

Problem

While the overflow styling(overflow: auto) makes the container scroll on web/Desktop/mobile Web but it won't be respected on native platforms. We should use ScrollView from react-native.

Proposal

  1. We should change this view into ScrollView and remove the overflow styles.
    https://github.com/Expensify/Expensify.cash/blob/f043f8a1aaea697ddb7e685262842d6eb5ba5648/src/pages/settings/Profile/ProfilePage.js#L258
  2. We should wrap this content in another view where we will apply the padding otherwise on the web the bottom padding is not working. Look at the gap between set timezone automatically checkbox and save button. There should be a gap here.

Wrong Padding

Previously posted here #2147 (comment)

@Mukhammadali
Copy link

Proposal:

The View component is not scrollable on iOS and Android platforms, even though it works on the Web. We should replace the View component on line 258 with ScrollView component and apply View styles to Scrollview.
Then It will be scrollable on all platforms.

https://github.com/Expensify/Expensify.cash/blob/f043f8a1aaea697ddb7e685262842d6eb5ba5648/src/pages/settings/Profile/ProfilePage.js#L258

@a-eid
Copy link

a-eid commented Apr 24, 2021

there is no scrollable component used to wrap the page, there there be a scrollable component wrapper for the content to be scrollable. either a ScrollView or SectionList would be fine to use here.

@marcaaron marcaaron assigned deetergp and unassigned marcaaron Apr 26, 2021
@marcaaron
Copy link
Contributor

@stephanieelliott re-assigning @deetergp since the process has changed and adding the Exported label will assign an appropriate engineer instead of whoever added the External label.

@deetergp
Copy link
Contributor

@parasharrajat You were first to respond and your proposal sound good. Please go ahead and create a PR.

@stephanieelliott
Copy link
Contributor

@parasharrajat I've sent you the offer for this job on Upwork, please accept the offer when you can!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
External Added to denote the issue can be worked on by a contributor
Projects
None yet
10 participants