GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — StatusBar: Remove PropTypes by empyrical · Pull Request #21293 · react/react-native

Conversation

@empyrical

@empyrical empyrical commented Sep 24, 2018

Copy link
Copy Markdown
Contributor

Part of: react-native-community/discussions-and-proposals#29

This PR removes the remaining PropTypes from StatusBar and moves its flowtypes to its own definition.

Test Plan:

flow check passes for android and ios.

Release Notes:

[GENERAL] [ENHANCEMENT] [Libraries/Components/StatusBar/StatusBar.js] - Removed PropTypes

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@empyrical
StatusBar: Remove PropTypes
667f414
@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
@empyrical
empyrical requested a review from elicwhite September 24, 2018 16:37
elicwhite
elicwhite reviewed Sep 24, 2018
View reviewed changes
Comment thread Libraries/Components/StatusBar/StatusBar.js Outdated
type DefaultProps = {
animated: boolean,
};
type StatusBarProps = $ReadOnly<{|

@elicwhite elicwhite Sep 24, 2018

Copy link
Copy Markdown
Contributor

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.

I think I'd prefer if you just named these types Props. I believe that is consistent with all the other files

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@empyrical empyrical Sep 24, 2018

Copy link
Copy Markdown
Contributor Author

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.

Renamed it

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
elicwhite
elicwhite requested changes Sep 24, 2018
View reviewed changes
Comment thread Libraries/Components/StatusBar/StatusBar.js
* The background color of the status bar.
* @platform android
*/
backgroundColor?: ?string,

@elicwhite elicwhite Sep 24, 2018

Copy link
Copy Markdown
Contributor

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.

When there are a bunch of Props that are supported on different platforms, I like doing this pattern:

type AndroidProps = //
type IOSProps = //

type Props = $ReadOnly<{|
  ...IOSProps,
  ...AndroidProps,
  // shared props
|}>

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@empyrical empyrical Sep 24, 2018

Copy link
Copy Markdown
Contributor Author

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.

And also re-organized these

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@empyrical
Move platform-specific types into their own declarations
a5c221d
@react-native-bot react-native-bot added 🔶Components labels Sep 24, 2018
@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
facebook-github-bot
facebook-github-bot approved these changes Sep 24, 2018
View reviewed changes

@facebook-github-bot facebook-github-bot left a comment

Copy link
Copy Markdown
Contributor

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@facebook-github-bot facebook-github-bot closed this in cd1d3ce Sep 24, 2018
@react-native-bot

react-native-bot commented Sep 24, 2018

Copy link
Copy Markdown
Collaborator

@empyrical merged commit cd1d3ce into facebook:master.


Once this commit is added to a release, you will see the corresponding version tag below the description at cd1d3ce. If the commit has a single master tag, it is not yet part of a release.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@react react 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
@empyrical @facebook-github-bot
StatusBar: Remove PropTypes (react#21293)
115fa65
Summary:
Part of: react-native-community/discussions-and-proposals#29

This PR removes the remaining PropTypes from `StatusBar` and moves its flowtypes to its own definition.
Pull Request resolved: react#21293

Differential Revision: D10012963

Pulled By: TheSavior

fbshipit-source-id: 7fb4e416eb49e7860809a3e2aaf157590908687d
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@elicwhite elicwhite elicwhite requested changes
+1 more reviewer
@facebook-github-bot facebook-github-bot facebook-github-bot approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

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

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@empyrical @react-native-bot @elicwhite @facebook-github-bot @hramos
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.