ecency / ecency-mobile

Ecency Mobile - reimagined social blogging, contribute and get rewarded (for Android and iOS)
https://ecency.com
MIT License
232 stars 69 forks source link

BUG: android app installed on chromebooks not rendering properly #2449

Closed noumantahir closed 1 year ago

noumantahir commented 1 year ago

Happens when opening app using an external post link.

Screenshot 2022-09-07 at 7 50 26 PM

Issue might be due landscape/portraint width not calculating properly. Need to reproduce it first

Update: Attempted to reproduce this issue on android table emulator, apparently it is not being reproduce even if we open Ecency app while tablet is locked in landscape mode.

Screenshot 2022-09-23 at 5 19 12 PM

If we notice closely look at the first screenshot shared by melinda, the BasicHeader dimensions are being read properly but it messes up as it renders PostBodyView. Based on this deduction, the issue seems to be coming from this code linked below, it is just a guess though https://github.com/ecency/ecency-mobile/blob/development/src/utils/getWindowDimensions.ts#L18

aliseyalvi commented 1 year ago

@noumantahir issue needs more brainstorming and according to my assesment we have to support landscape mode because forcing portrait is not a good solution and it is causing issues or various devices like android tablets with width greater than height and when starting app in landscape mode locked