Skip to content

[createReactClass] Remove createReactClass from ProgressBarAndroidExample - #21874

Closed
exced wants to merge 4 commits into
react:masterfrom
exced:progressBarAndroidExample
Closed

[createReactClass] Remove createReactClass from ProgressBarAndroidExample#21874
exced wants to merge 4 commits into
react:masterfrom
exced:progressBarAndroidExample

Conversation

@exced

@exced exced commented Oct 20, 2018

Copy link
Copy Markdown
Contributor

Related to #21581

This PR was already opened here #21600 but seems to be inactive.

Remove createReactClass from ProgressBarAndroidExample.

Test Plan:

  • yarn run flow && yarn run flow-check-android succeed.
  • RNTester app ProgressBarAndroidExample on Android.

Release Notes:

[GENERAL] [ENHANCEMENT] [ProgressBarAndroidExample.android.js] - rm createReactClass

@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 Oct 20, 2018

@analysis-bot analysis-bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code analysis results:

  • eslint found some issues.

};

class MovingBar extends React.Component<MovingBarProps, MovingBarState> {
_intervalID: (null: ?IntervalID);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

null: Parsing error: Unexpected token, expected ")"

27 |
28 | class MovingBar extends React.Component<MovingBarProps, MovingBarState> {

29 | _intervalID: (null: ?IntervalID);
| ^
30 |
31 | state = {
32 | progress: 0,

@RSNara RSNara changed the title Remove createReactClass from ProgressBarAndroidExample [createReactClass] Remove createReactClass from ProgressBarAndroidExample Oct 22, 2018
@elicwhite

Copy link
Copy Markdown
Contributor

It looks like there are flow errors:

https://circleci.com/gh/facebook/react-native/57688

@exced

exced commented Oct 23, 2018

Copy link
Copy Markdown
Contributor Author

I fixed the ESLint issues. Besides I don't have any Flow errors locally, is the config different ?

@elicwhite

Copy link
Copy Markdown
Contributor

You need to run with the Android config to check .android.js files.

yarn run flow-check-android

@exced

exced commented Oct 24, 2018

Copy link
Copy Markdown
Contributor Author

@TheSavior I updated Props to fit ProgressBarAndroid component. I also exported its props to make it handier for me

@RSNara RSNara left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good! 🧐

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

Copy link
Copy Markdown
Contributor

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.

@react-native-bot

Copy link
Copy Markdown
Collaborator

@exced merged commit 81e5d64 into facebook:master.

@react react locked as resolved and limited conversation to collaborators Nov 2, 2018
@react-native-bot react-native-bot added the Merged This PR has been merged. label Nov 2, 2018
rozele pushed a commit to microsoft/react-native-windows that referenced this pull request Apr 14, 2019
Summary:
Related to #21581

This PR was already opened here react/react-native#21600 but seems to be inactive.

Remove createReactClass from ProgressBarAndroidExample.

- `yarn run flow` && `yarn run flow-check-android` succeed.
- RNTester app ProgressBarAndroidExample on Android.

[GENERAL] [ENHANCEMENT] [ProgressBarAndroidExample.android.js] - rm createReactClass
Pull Request resolved: react/react-native#21874

Reviewed By: TheSavior

Differential Revision: D12827689

Pulled By: RSNara

fbshipit-source-id: 46c70ea67dddf5d928fe936a28ef4a0a929d127f
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
Summary:
Related to react#21581

This PR was already opened here react#21600 but seems to be inactive.

Remove createReactClass from ProgressBarAndroidExample.

- `yarn run flow` && `yarn run flow-check-android` succeed.
- RNTester app ProgressBarAndroidExample on Android.

[GENERAL] [ENHANCEMENT] [ProgressBarAndroidExample.android.js] - rm createReactClass
Pull Request resolved: react#21874

Reviewed By: TheSavior

Differential Revision: D12827689

Pulled By: RSNara

fbshipit-source-id: 46c70ea67dddf5d928fe936a28ef4a0a929d127f
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. Platform: Android Android applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants