-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Picker: Remove PropTypes #21281
Picker: Remove PropTypes #21281
Conversation
>; | ||
|
||
type PickerAndroidProps = $ReadOnly<{| | ||
children?: ?React.Node, |
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.
React.Node includes null
children?: React.Node
render() { | ||
// The items are not rendered directly | ||
throw null; | ||
} | ||
} | ||
|
||
type PickerProps = $ReadOnly<{| | ||
children?: ?React.Node, |
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.
Same here
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.
@empyrical merged commit 421667c into Once this commit is added to a release, you will see the corresponding version tag below the description at 421667c. If the commit has a single |
Summary: Part of: react-native-community/discussions-and-proposals#29 This pull request removes all PropTypes from the various files for `Picker` and cleans up their flow types. Pull Request resolved: facebook#21281 Differential Revision: D10007224 Pulled By: TheSavior fbshipit-source-id: 5b8b7918cc918dd77e7ab27c9e3921ffbeb4ff73
Part of: react-native-community/discussions-and-proposals#29
This pull request removes all PropTypes from the various files for
Picker
and cleans up their flow types.Test Plan:
flow check
andflow check --flowconfig-name .flowconfig.android
both passRelease Notes:
Help reviewers and the release process by writing your own release notes. See below for an example.
[GENERAL] [ENHANCEMENT] [Libraries/Components/Picker/Picker.js] - Removed all PropTypes
[GENERAL] [ENHANCEMENT] [Libraries/Components/Picker/PickerAndroid.android.js] - Removed all PropTypes