-
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
iOS- 1.0.2-51- Left menu shown in the center and need to reload App to fix it #2180
Comments
can you share the source code? then i can fix it. |
Hi @Amazing1974 everything you should need to propose a solution should be in |
@marcaaron assigned to you for incoming proposal reviews since you added the External label to the E/E issue |
Gonna unassign myself from this one as the process changed on that. |
Triggered auto assignment to @deetergp ( |
on hold to see if #2051 magically fixes this too. |
🤞 |
I debugged this issue and found that react native's While using iPad in portrait mode (width: 768, height: 1024), when I send the app to the background this function is first called with (width: 1024, height: 768) and then with (width: 768, height: 1024). Components are rendered based on the first call and it's causing elements to be positioned badly on the screen. I'm still trying to find out why it behaves like this on older iPad versions while it's working as expected on iPhone and iPad Pro. |
Could be related to this ? facebook/react-native#29290 |
Yes, it looks similar. I couldn't find any workaround or temporary solution yet. |
Any word on your findings, @tugbadogan? |
Yes, I have a proposal for this issue now. Since this problem is caused by Dimensions native class is calling 'change' callback too many times with wrong dimensions, we can use Making these changes resolve this issue. |
Thanks, but maybe there's more to it? I applied this and was able to break it quickly by just changing the orientation a few times. |
Which device/emulator are you using to test this? I couldn't reproduce the issue after this fix even though I changed the orientation many times. Screen.Recording.2021-04-22.at.18.41.09.480p.mov |
I was testing on on simulator |
Hmm, I was able to reproduce broken view on orientation change on an iPhone (I couldn't find a reliable way to reproduce though). This looks like a separate issue then iPad having broken view when the app is sent to background. It looks like a bug on |
I'm confused as the current discussion is not about iPhone.
Not too sure what you are referring to exactly, but if you have discovered another issue please create a new issue or add context to an existing one. |
I doubled price to $500 in Upwork https://www.upwork.com/jobs/~01e2db72cd3240af67 |
The link above wasn't getting any 👀 so I closed it and created another with the $500 price. |
Im having some difficulties to reproduce the error on Ipad Pro 9-7 emulator; From React Native Docs: useWindowDimensions is the preferred API for React components. Unlike Dimensions, it updates as the window's dimensions update. This works nicely with the React paradigm. |
Also, i am watching the React Native changelog, and aparently they made some changes about this on 0.63.4, and the Expensify.cash its on 0.63.3... https://github.com/react-native-community/releases/blob/master/CHANGELOG.md It says android versions, but its enough to give it a try |
What makes it more reliable?
Thanks, but that commit looks like it changed Java code and we are experiencing an issue on iOS. |
@Jag96 Should I plan to pay @tugbadogan on June 15th for this? |
@mallenexpensify yes, updated the title 👍 |
@mallenexpensify It looks like Upwork approved the milestone and paid me automatically after some time passed. |
Hi @tugbadogan is this issue the 'exact' same as this one? #2447 The combo of these two has been confusing me for WEEKS |
@mallenexpensify This issue and #2447 are both caused by some animation bugs in react-navigation library. These issues are separate symptoms of similar bugs in react-navigation.
By upgrading react-navigation to 6.x, we started using React Animated 2 which I expect to solve positioning issues, so both of these issues can be closed. |
@tugbadogan I believe this perception is wrong here as per the docs https://reactnavigation.org/docs/6.x/drawer-navigator#uselegacyimplementation. And you have not set the flag explicitly. |
The documentation says
That prop defaults to |
I meant that we should set |
Yeah, it'd be better to set it false to enable Reanimated 2 on web and have consistency. That's need to be tested thoroughly on web though. |
@tugbadogan |
We may be missing these https://docs.swmansion.com/react-native-reanimated/docs/2.1.0/installation#android |
This should have been paid via Upwork |
Hi @mallenexpensify, Other issue (#2447) is closed now. I think we can close this issue as well. |
Let's do it @tugbadogan !!! |
Hello, I think the job posting for this issue is no longer relevant, right? https://www.upwork.com/jobs/~012e79714137f7faa6 |
Closed, thanks @dklymenk . This issue was a nightmare for me, think it got double posted months ago. |
remove workaround introduced in Expensify#2180 after the proper fix from Expensify#2727
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Job on Upwork https://www.upwork.com/jobs/~01acd19801f956e8ed
Expected Result:
App should be open and show chat as usually.
Actual Result:
App is opened but left menu is shown in the middle. Need to toggle device orientation again to fix it.
Action Performed:
Platform:
iOS - iPad
Version Number: 1.0.2-51
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
https://github.com/Expensify/Expensify/issues/157516
The text was updated successfully, but these errors were encountered: