-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
[flow-strict] Flow strict in DatePickerAndroid.android.js, DatePickerAndroid.ios.js #22106
Conversation
I got this error...
I should add |
I am not quite sure why those are getters. (Perhaps in an earlier revision, they were getting things from But you should be able to change them to normal static properties like: static dismissedAction = 'dismissedAction'; |
@empyrical |
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.
@TheSavior is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
I tried to merge this pull request into the Facebook internal repo but some checks failed. To unblock yourself please check the following: Does this pull request pass all open source tests on GitHub? If not please fix those. Does the code still apply cleanly on top of GitHub master? If not can please rebase. In all other cases this means some internal test failed, for example a part of a fb app won't work with this pull request. I've added the Import Failed label to this pull request so it is easy for someone at fb to find the pull request and check what failed. If you don't see anyone comment in a few days feel free to comment mentioning one of the core contributors to the project so they get a notification. |
We have two internal flow errors from this change:
It looks like it expects action as part of the resolved promise. Is that something native actually provides and the type should be including or does it seem like a bug in our callsites? |
I refer to these lines. I seem that the native provides action(always), year, month day. Lines 116 to 120 in 0a39cda
But, the error which you got happened in DatePickerAndroid.ios.js |
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.
@TheSavior has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@nd-02110114, was there a reason that you closed this PR? We hadn't gotten a chance to finish landing it but it was on our radar. I'd still like to land it. :-/ |
@TheSavior |
@nd-02110114 merged commit 60f3b53 into |
Related to #22100
Turn Flow strict mode on for DatePickerAndroid
Test Plan:
This error was happend #22101 #22048
Release Notes:
[GENERAL] [ENHANCEMENT] [Components/DatePickerAndroid/DatePickerAndroid.android.js] - Flow strict mode
[GENERAL] [ENHANCEMENT] [Components/DatePickerAndroid/DatePickerAndroid.ios.js] - Flow strict mode