-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] Bank account - Selected digit is not turned green &number entered is entered in incorrect place #52577
Comments
Triggered auto assignment to @johncschuster ( |
Edited by proposal-police: This proposal was edited at 2024-11-14 16:27:08 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Selected digit is not turned green and number entered is entered in incorrect place What is the root cause of that problem?We're using GestureDetector in MagicCodeInput but we didn't wrap it in Reference: https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/installation/ We also wrapped What changes do you think we should make in order to solve the problem?We should wrap
We can add What alternative solutions did you explore? (Optional)ResultScreen.Recording.2024-11-14.at.23.24.55.mov |
ProposalPlease re-state the problem that we are trying to solve in this issue.Pressing on a magic code digit input doesn't highlight the digit input. What is the root cause of that problem?The magic code input consists of a single TextInput and we apply a gesture handler to detecte on which digit input placeholder is pressed/tapped. App/src/components/MagicCodeInput.tsx Lines 213 to 226 in a6f1348
However, the gesture handler doesn't work when used inside a modal, which is true for our case. This is mentioned on the rngh docs here. What changes do you think we should make in order to solve the problem?We need to wrap the modal content with a gesture handler root view. RNGH provides a HOC (gestureHandlerRootHOC ) that only wraps it on Android. We can wrap the color scheme wrapper with the HOC. App/src/components/Modal/BaseModal.tsx Lines 272 to 277 in a6f1348
We need to pass the sizing style based on the OR We wrap the View wrapper instead, but GetureHandlerRootView doesn't accept ref, but I don't see we use the ref either. |
Note for C+: The link I mentioned here suggest to use GestureHandlerRootView or gestureHandlerRootHOC, but using
As in the docs, they said that we should use |
@johncschuster Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Job added to Upwork: https://www.upwork.com/jobs/~021858629538288881697 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @alitoshmatov ( |
@alitoshmatov Can you please review my proposal? Thanks |
@johncschuster, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
I'm working a shorter week this week and couldn't fit this in today |
(I've bumped Slack) |
@truph01 Thank you for your proposal, I suggest you provide more explanation on your root causes it seemed like it was just justifying your solution. I understood it after seeing @bernhardoj 's reasoning. Though your solution is correct and solves the issue. |
@bernhardoj Thank you for your proposal, your solution works, but I think it is better to just use |
Triggered auto assignment to @johnmlee101, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
My proposal also adds
I don't see a reason why we prefer applying it to all platforms when the docs recommend using the HOC because it's an Android issue only. @truph01 proposal also doesn't handle the style break after applying |
@johnmlee101 @johncschuster @alitoshmatov this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Issue not reproducible during KI retests. (First week) |
@bernhardoj The docs recommend we use GestureHandlerRootView or gestureHandlerRootHOC.
But HOC is not recommend in our App.
If we decide to add it in |
I'm talking about this part of the doc: https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/installation#usage-with-modals-on-android
This is not true.
The docs stated to use hooks whenever possible, but GestureHandlerRootView is a View and not replaceable by a hook. |
Looks like @alitoshmatov think that my proposal doesn't solve the issue globally which in fact does. Can you recheck all the conversation above? |
So I believe we prefer using |
@johnmlee101, @johncschuster, @alitoshmatov Huh... This is 4 days overdue. Who can take care of this? |
I am sorry, I think I miscommunicated there about this point. |
My though process was that since we use |
@bernhardoj Can we also remove all |
Yes, we should be able to do that since the HOC wraps the component with GestureHanderRootView, but it's only for Android based on the doc. I mentioned this in my proposal too.
|
@alitoshmatov GestureHandlerRootView also can apply in BaseModal |
I also couldn't reproduce the issue on main |
It was fixed in #52802. |
Looks like this issue was duplicate of #51293 and is resolved now |
I think we can close this issue |
@johnmlee101 @johncschuster @alitoshmatov this issue is now 4 weeks old, please consider:
Thanks! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.62-1
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: No
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
Selected digit must be turned green and number entered must be entered in correct place
Actual Result:
Selected digit is not turned green and number entered is entered in incorrect place
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6665364_1731595506656.Screenrecorder-2024-11-14-20-06-21-271_compress_1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: