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

[createReactClass] Remove createReactClass from ProgressBarAndroidExample #21874

Closed
wants to merge 4 commits into from

Conversation

exced
Copy link
Contributor

@exced exced commented Oct 20, 2018

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

@analysis-bot analysis-bot left a comment

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);

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
Member

It looks like there are flow errors:

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

@exced
Copy link
Contributor Author

exced commented Oct 23, 2018

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

@elicwhite
Copy link
Member

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

yarn run flow-check-android

@exced
Copy link
Contributor Author

exced commented Oct 24, 2018

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

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! 🧐

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.

@react-native-bot
Copy link
Collaborator

@exced merged commit 81e5d64 into facebook:master.

@facebook facebook 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 facebook/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: facebook/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 facebook#21581

This PR was already opened here facebook#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: facebook#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