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

[FlowCleanup] Replace DeprecatedViewPropTypes.style for ViewStyleProp on IntegrationTestHarnessTest and InputAccessoryView #21397

Closed
wants to merge 3 commits into from

Conversation

ronal2do
Copy link
Contributor

@ronal2do ronal2do commented Sep 28, 2018

related #21342

Test Plan:

  • yarn prettier
  • yarn flow-check-android
  • yarn flow-check-ios

Release Notes:

[GENERAL] [ENHANCEMENT] [InputAccessoryView.js] Replace DeprecatedViewPropTypes.style for ViewStyleProp
[GENERAL] [ENHANCEMENT] [IntegrationTestHarnessTest.js] Replace 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 28, 2018
@react-native-bot react-native-bot added 🔶Components Missing Changelog This PR appears to be missing a changelog, or they are incorrectly formatted. labels Sep 28, 2018
@ronal2do ronal2do changed the title Replace DeprecatedViewPropTypes.style for ViewStyleProp Replace DeprecatedViewPropTypes.style for ViewStyleProp on IntegrationTestHarnessTest and InputAccessoryView Sep 28, 2018
Copy link
Contributor

@RSNara RSNara left a comment

Choose a reason for hiding this comment

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

Looks good!

But while we're in this file, would you like to also make the flow types better?

};
type Props = $ReadOnly<{|
shouldThrow?: boolean,
waitOneFrame?: boolean,
Copy link
Contributor

Choose a reason for hiding this comment

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

type Props = $ReadOnly<{|
  shouldThrow?: ?boolean,
  waitOneFrame?: ?boolean,
|}>

+children: React.Node,
/**
* An ID which is used to associate this `InputAccessoryView` to
* specified TextInput(s).
*/
nativeID?: string,
style?: DeprecatedViewPropTypes.style,
style?: ViewStyleProp,
Copy link
Contributor

Choose a reason for hiding this comment

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

type Props = $ReadOnly<{|
  +children: React.Node,
  nativeID?: ?string,
  style?: ?ViewStyleProp,
  backgroundColor?: ?DeprecatedColorPropType
...

Copy link
Contributor

@RSNara RSNara left a comment

Choose a reason for hiding this comment

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

Oops. Forgot to request changes.

@ronal2do
Copy link
Contributor Author

Fixed, thanks for you feedback

Copy link
Contributor

@RSNara RSNara left a comment

Choose a reason for hiding this comment

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

Awesome, thanks! :)

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.

RSNara has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@hramos hramos changed the title Replace DeprecatedViewPropTypes.style for ViewStyleProp on IntegrationTestHarnessTest and InputAccessoryView [FlowCleanup] Replace DeprecatedViewPropTypes.style for ViewStyleProp on IntegrationTestHarnessTest and InputAccessoryView Oct 1, 2018
@react-native-bot
Copy link
Collaborator

@ronal2do merged commit 80066db into facebook:master.

@facebook facebook locked as resolved and limited conversation to collaborators Oct 1, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Oct 1, 2018
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
…nTestHarnessTest and InputAccessoryView (facebook#21397)

Summary:
related facebook#21342
Pull Request resolved: facebook#21397

Reviewed By: TheSavior

Differential Revision: D10119623

Pulled By: RSNara

fbshipit-source-id: 16bdb3d5bf90c24b597bbc12fc416a50a0aa2bb1
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. Missing Changelog This PR appears to be missing a changelog, or they are incorrectly formatted.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants