-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[HOLD][$250] Dev - Getting console warning in android #11733
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
Comments
Triggered auto assignment to @MitchExpensify ( |
ProposalApp/src/pages/home/ReportScreen.js Line 210 in 299f07b
The issue happens from above line added here
keyboardAvoidingViewBehavior props value is expected one of these 3 but in android it's set to ''
Solution: - keyboardAvoidingViewBehavior={Platform.OS === 'android' ? '' : 'padding'} remove this line The default values are found here
android:
|
Actually, change the default proptypes can effect other screens. App/src/pages/home/ReportScreen.js Line 210 in 299f07b
into: - keyboardAvoidingViewBehavior={Platform.OS === 'android' ? '' : 'padding'}
+ keyboardAvoidingViewBehavior={Platform.OS === 'android' ? undefined : 'padding'} After that, the warning will disappear and also it won't effect other screens. |
I vote we close this issue as it's not a big problem and will be fixed after #10648 |
Please wait until the issue has been triaged and |
Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat ( |
Triggered auto assignment to @Luke9389 ( |
I am not opposed to waiting if there's an open PR where it will be fixed, but let's leave this issue open until it is fixed. It's a problem, that's why I reported it, and we should fix it. |
Strangely, that component is using @marcaaron Do you want me to look into proposals or hold this? |
If we can fix this now it is fine to just do it. |
We should generally not be merging PRs that introduce these kinds of warnings. |
I agree. Looks like there was discussion on the same https://github.com/Expensify/App/pull/10567/files#r955053952. |
That line looks unnecessary to me as well. cc: @Luke9389 |
cc @Luke9389 as I am not the assigned CME |
Oh Sorry, Didn't notice. |
I think @aimane-chnaif's proposal to set the android value to |
So the android value is already set to |
I don't find any issue on setting
BTW, I am just notified this: #10273 (comment) |
@aimane-chnaif, please be careful here. There is a known issue that we've linked to that is caused by using I do agree that we should wait on this PR to be merged. If the issue is still happening, I'd prefer to go with option 2 from @parasharrajat's comment here. @parasharrajat I don't like option 1 very much because it seems like an anti-pattern to have a component enable or disable itself (as opposed to just not using it in the parent). For now I'd like to put this issue on HOLD to wait for that PR. Thoughts @parasharrajat? |
fine with me. |
On HOLD. |
Looks fair to me @aneequeahmad! Added you as a reporter |
I'm going to hold on the Upwork job while the issue is on hold |
still on hold |
@Luke9389 What do you think about closing this given the above comment? |
Gotta read this one back over. |
Yep we can close this now. Thanks @aimane-chnaif. |
@MitchExpensify This one is fixed in production, am i eligible for reporting bonus ? |
Yes @aneequeahmad, paying now |
Mind applying here and I'll issue the reporting bonus? Thanks @aneequeahmad |
@MitchExpensify applied thanks |
Paid! |
Uh oh!
There was an error while loading. Please reload this page.
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
No console warnings displayed
Actual Result:
Console warnings about
keyboardAvoidingViewBehavior
are presentWorkaround:
Unknown
Platform:
Where is this issue occurring?
Version Number: 1.2.12-3


Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos:
Expensify/Expensify Issue URL:
Issue reported by: @aneequeahmad
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1665522948008369
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: