Skip to content
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

Closed
wants to merge 2 commits into from
Closed

Conversation

empyrical
Copy link
Contributor

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 and flow check --flowconfig-name .flowconfig.android both pass

Release 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

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 24, 2018
>;

type PickerAndroidProps = $ReadOnly<{|
children?: ?React.Node,
Copy link
Member

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,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Sep 24, 2018
Copy link
Contributor

@facebook-github-bot facebook-github-bot left a 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.

@react-native-bot
Copy link
Collaborator

@empyrical merged commit 421667c into facebook:master.


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 master tag, it is not yet part of a release.

@facebook facebook locked as resolved and limited conversation to collaborators Sep 24, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Sep 24, 2018
@hramos hramos removed Import Started This pull request has been imported. This does not imply the PR has been approved. labels Feb 6, 2019
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged This PR has been merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants