-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Changed the Amount Text to TextInput #6811
Conversation
@tgolen @parasharrajat I've found one issue with the Mobile Web. Even though I've added Checking at my end |
Ops, I didn't notice that we have to handle M-Web as well.
Basically, this does not work for the Web. They are native props. |
|
@parasharrajat Thanks for the suggestion. This worked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also fix the conflicts, please?
src/pages/iou/steps/IOUAmountPage.js
Outdated
this.unsubscribeAppStateSubscription(); | ||
} | ||
|
||
handleAppStateChange(nextAppState) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Methods need to be named for what they do rather than for what they handle. I suggest renaming this to dismissKeyboardWhenBackgrounded
…ount-pasting # Conflicts: # src/pages/iou/steps/IOUAmountPage.js
@tgolen PR updated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
if (!this.unsubscribeAppStateSubscription) { | ||
return; | ||
} | ||
this.unsubscribeAppStateSubscription(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function does not return a method to unsubscribe...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.unsubscribeAppStateSubscription.remove()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, good catch. I am seeing some console errors for this. @akshayasalvi can you please fix this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Okay sure. I'll do that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, we've fixed it already. This was taken care of in #6909
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the help
🚀 Deployed to production by @francoisl in version: 1.1.24-8 🚀
|
if (!nextAppState.match(/inactive|background/)) { | ||
return; | ||
} | ||
Keyboard.dismiss(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👋 Coming from #26505
Keyboard.dismiss
was added as a fix #6285 (comment) where in native, showSoftInputOnFocus
does not work if the app is backgrounded, then foregrounded
This was causing #26505 on Desktop
We resolved this by moving this logic to a platform-specific file, so it's called only on native platforms (since this bug is present only on native)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I love that. Thank you for moving it to a platform-specific file!
Details
IOUAmount
fieldFixed Issues
$ #6285
Tests
QA Steps
Tested On
Screenshots
Web
Mobile Web
Desktop
iOS
ios-amount-pasting.mov
Android