Preventing brief occurrences of emojis and non-digit chars.#64689
Preventing brief occurrences of emojis and non-digit chars.#64689aadil42 wants to merge 6 commits into
Conversation
|
Hey! I see that you made changes to our Form component. Make sure to update the docs in FORMS.md accordingly. Cheers! |
|
All contributors have signed the CLA ✍️ ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
|
@brunovjk, So just to be clear. We're gonna use |
Avoid passing value for `uncontrolled` prop
Using `AmountWithoutCurrencyInput` component.
Reverting back.
|
@brunovjk, We're almost done. Just waiting for your advice on this comment We're now using Changes of Now, we just need to update |
|
Let's confirm before moving forward hehehhe Asked here |
|
@brunovjk, I don't have access.
I've been asking for the access from the past 2 months. But They always say there's some problem going on.
Can you let me in please? Thank you. |
|
I'm am really sorry for the delay @brunovjk. And thank you for the opportunity. I was up untill 1 AM then I went to sleep so I couldn't reply yesterday. |
Sorry about that and the delay. |
|
@iwiznia confirmed "Yes, it should accept negative values" |
|
Do we have everything we need to move forward? |
I dont have permission to do it :/ |
|
Everything is done. Just need to test it. Build is giving error. I'll get back to you after testing. |
Yeah. I don't know when it will be resolved. I've been trying for the past 2 months. |
Great! |
That's weird, I'll message someone about it. |
Add logic that allows negative values.
|
@brunovjk, I added the logic that allows negative values in |
|
Hey @brunovjk just drawing your attention here. |
Great, very good, now I'm away from the keyboard, I'll test it tomorrow morning. Can we safely remove component |
Yeah, we should |
Delete AmountWithoutCurrencyForm because it is not used.
Yes, Nice!!! |
|
Sure :D |
|
@brunovjk How stupid of me. I found the issue. The reason it was working in the other PR is because we were passing
I removed that part because github action was yelling at me for passing a boolean value as shown in the image above. So I removed it. But yes it is because of this that we don't have default values anymore because it becomes undefined when we don't pass This code is what is making App/src/components/Form/FormProvider.tsx Lines 364 to 367 in a51e02b |
|
Default value for |




Explanation of Change
Using
react-native-advanced-input-maskto prevent brief occurrences of emojis and non-digits chars.Not passing
valueprop to<TextInput>anymore to prevent flickering issue. See this Comment Proposal for more details.Fixed Issues
$ #63127
PROPOSAL: #63127(comment)
Tests
Offline tests
Same as tests
QA Steps
Same as tests
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
android-native-test.mp4
Android: mWeb Chrome
android.mweb.test.mp4
iOS: Native
ios.native.test.mp4
iOS: mWeb Safari
ios.mweb.test.mp4
MacOS: Chrome / Safari
web.chrome.mp4
MacOS: Desktop
mac.os.desktop.mp4