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

Split EdgeInsets in DeprecatedPropTypes and flow types #21351

Closed
wants to merge 2 commits into from

Conversation

danibonilha
Copy link
Contributor

This PR splits EdgeInsetsPropTypes into EdgeInsetsPropTypes with only flow types and DeprecatedEdgeInsetsPropTypes inside DeprecatedProptypes with only PropTypes.

Related to #21342

Test Plan:

All flow checks pass.

Release Notes:

[GENERAL] [ENHANCEMENT] [DeprecatedEdgeInsetsPropTypes.js] - Created.
[GENERAL] [ENHANCEMENT] [EdgeInsetsPropTypes.js] - Flow types only.

@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 27, 2018
Copy link
Contributor

@empyrical empyrical left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@danibonilha
Copy link
Contributor Author

danibonilha commented Sep 27, 2018

@empyrical I'm not sure why flow-check is failing in CI, should I find all references of require('EdgeInsetsPropType'), replace with require('DeprecatedEdgeInsetsPropType') , and rename all to Deprecated ?

@empyrical
Copy link
Contributor

I missed that flow failure, sorry!

TouchableWithoutFeedback.js still uses prop-types. It still uses an old style of creating components called createReactClass, so for now just swap out the import by changing this:

const EdgeInsetsPropType = require('EdgeInsetsPropType');

to this:

const EdgeInsetsPropType = require('DeprecatedEdgeInsetsPropTypes');

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 has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@elicwhite
Copy link
Member

Thanks for contributing!

t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
Summary:
This PR splits EdgeInsetsPropTypes into EdgeInsetsPropTypes with only flow types and DeprecatedEdgeInsetsPropTypes inside DeprecatedProptypes with only PropTypes.

Related to facebook#21342
Pull Request resolved: facebook#21351

Reviewed By: RSNara

Differential Revision: D10081512

Pulled By: TheSavior

fbshipit-source-id: 267a6fbb455e02dd7f2b0f3b59790e96387eaa09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants