-
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
[$2000] Dev: IOS - Chat - Console error on dismiss keyboard without sending message #20552
Comments
Triggered auto assignment to @tjferriss ( |
Bug0 Triage Checklist (Main S/O)
|
Job added to Upwork: https://www.upwork.com/jobs/~01e4b6a6d4dee21067 |
Current assignee @tjferriss is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
Triggered auto assignment to @AndrewGable ( |
I'm not able to reproduce as I don't have a mobile dev environment with access to the console. @AndrewGable or @sobitneupane are either of you able to reproduce the bug? Also, if there is a way for me to reproduce the console error on staging or prod, please let me know :) |
This comment was marked as outdated.
This comment was marked as outdated.
Yes, I can reproduce the issue.
No, I don't think it can be reproduced on staging or prod. |
@tienifr Can you please add more explanation to root cause analysis? Which animation we are talking about here? Why is |
@sobitneupane Actually event is sent once but it occurs when a user press multiple return to simultaneouly. |
@sobitneupane sorry my previous solution was not a good one (doesn't work when the emoji suggestion list/keyboard is opened, still has the warning) so I posted a new one here and marked the above outdated. ProposalPlease re-state the problem that we are trying to solve in this issue.Getting console error on dismiss the keyboard What is the root cause of that problem?This line will configure the layout animation
When we open the keyboard/the emoji suggestion list shows, or any animation happening when we type in the Composer, that animation will conflict with the LayoutAnimation above and causes the warning. This is a known issue of What changes do you think we should make in order to solve the problem?The App/src/components/OpacityView.js Line 38 in 93957f0
Updated: So precisely the above has been done in this PR that was merged recently. So now all we need to do is to remove the What alternative solutions did you explore? (Optional)NA |
I think @allroundexperts is implementing reanimated into the suggestion component. |
@allroundexperts Can you please take a look and confirm if you are working on the transition to |
@allroundexperts |
📣 @DJStartupAgile! 📣
|
|
Contributor details |
✅ Contributor details stored successfully. Thank you for contributing to Expensify! |
@AndrewGable, @tjferriss, @sobitneupane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
1 similar comment
@AndrewGable, @tjferriss, @sobitneupane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Software Mansion is looking into the issue. |
Hey, Reanimated maintainer from Software Mansion here 👋 Thanks @ntdiary for your investigation (#20552 (comment)) as well as submitting the proposal. I think this should resolve the underlying issue. I believe we can even go a step further and remove the cleanup block completely: // Clean up
// below line serves as this one uiManager->_layoutAnimationGroup = nil;, because we don't have access to the
// private field
[uiManager setNextLayoutAnimationGroup:nil]; Here's the full story. In #3332 we rewrote the mechanism of Layout Animations and used However, in #3824 we got rid of I will consult this change with the author of the aforementioned PR and most likely submit a PR that removes the problematic call. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Wonderful, thank you for the update @tomekzaw! |
@AndrewGable, @tjferriss, @sobitneupane Eep! 4 days overdue now. Issues have feelings too... |
Update: We came up with second fix, it looks like it works better but still sometimes the warning shows up. Working on it. |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Thanks @tomekzaw. When do you expect to have a PR up? |
@AndrewGable, @tjferriss, @sobitneupane Eep! 4 days overdue now. Issues have feelings too... |
@tjferriss I wanted to test out the PR in the Expensify App but at this point I can't even reproduce the original issue on the main branch (53ac4ee). Here's a video recording: video.mov |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
Agreed. I'm no longer able to reproduce the issue on staging. |
Let's reopen if we see it again! |
Eh, this issue only occurs in the dev environment. Also, since this line of code below has been deleted, the steps in the OP can no longer be reproduced, but the steps in this comment can still be reproduced (the root case is still calling
demo4.mp4 |
I guess it also happens in the release environment -- it's just that the effect is not visible because
Okay, I will check out the other issue you've linked and try to reproduce the problem. edit: I've tried really hard but I still can't reproduce the issue on #20888 (review) on the current main. @ntdiary Can you try it as well? |
@tomekzaw, yeah, your description is a bit more accurate. 😄
demo4.mp4This video is what I tested on the latest main branch. Can you please share a video of your operations? We need to make sure emoji suggestions or mention suggestions appear first. 🙂 |
@ntdiary Thanks for the response. For some reason, after I pulled the latest main, the default build variant was edit: it looks like software-mansion/react-native-reanimated#4955 resolves the issue, we'll merge it and release in 3.5.0 edit: released in 3.5.0 🎉 |
<!-- Thanks for submitting a pull request! We appreciate you spending the time to work on these changes. Please follow the template so that the reviewers can easily understand what the code changes affect. --> ## Summary See Expensify/App#20552 (comment) for details. ## Test plan <!-- Provide a minimal but complete code snippet that can be used to test out this change along with instructions how to run it and a description of the expected behavior. -->
Great, then we just need to wait for the upgrade here. : ) |
Bumping to 3.5.0 in #27193 |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
Console error should not show
Actual Result:
Getting console error on dismiss the keyboard
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.27.1
Reproducible in staging?: yes
Reproducible in production?: yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-06-06.at.7.18.39.PM.mov
Expensify/Expensify Issue URL:
Issue reported by: @niravkakadiya25
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1686059495976739
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: