Skip to content

Conversation

@binaryta
Copy link
Contributor

@binaryta binaryta commented Nov 6, 2018

Related to #22100. I had this issue before(#22154).

Turn Flow strict mode on for Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js.

Test Plan:

  • npm run prettier
  • npm run flow
  • npm run flow-check-ios
  • npm run flow-check-android
  • npm run lint
  • npm run test
  • ./scripts/run-android-local-unit-tests.sh

Changelog:

[GENERAL][ENHANCEMENT][TimePickerAndroid.android.js] - apply flow strict-local

@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 Nov 6, 2018
@pull-bot
Copy link

pull-bot commented Nov 6, 2018

Warnings
⚠️

📋 Release Notes - This PR appears to be missing Release Notes.

Generated by 🚫 dangerJS

@binaryta
Copy link
Contributor Author

binaryta commented Nov 6, 2018

Hi @RSNara.

Thanks for your review before. I've solved previously addvice, so Please check these changes.

@binaryta
Copy link
Contributor Author

binaryta commented Nov 6, 2018

After this PR is merged, I'm ganna modify a relation file TimePickerAndroid.android.ios.js.

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.

I think you forgot to make these static properties read-only/covariant.

static get timeSetAction() {
return 'timeSetAction';
}
static timeSetAction = 'timeSetAction';
Copy link
Contributor

Choose a reason for hiding this comment

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

This static property should be covariant.

static +timeSetAction: string = 'timeSetAction';

static get dismissedAction() {
return 'dismissedAction';
}
static dismissedAction = 'dismissedAction';
Copy link
Contributor

Choose a reason for hiding this comment

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

This static property should be covariant:

static +dismissedAction: string = 'dismissedAction';

@binaryta
Copy link
Contributor Author

binaryta commented Nov 7, 2018

@RSNara

I think you forgot to make these static properties read-only/covariant.

Thanks for your review. I fixed it.

@binaryta binaryta closed this Nov 7, 2018
facebook-github-bot pushed a commit that referenced this pull request Nov 21, 2018
Summary:
Related to #22100 . I had this issue before(#22154 & #22172).

Turn Flow strict mode on for Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js.

- [x] npm run prettier
- [x] npm run flow
- [x] npm run flow-check-ios
- [x] npm run flow-check-android
- [x] npm run lint
- [x] npm run test
- [x] ./scripts/run-android-local-unit-tests.sh

[GENERAL][ENHANCEMENT][TimePickerAndroid.android.js] - apply flow strict-local
Pull Request resolved: #22188

Reviewed By: TheSavior

Differential Revision: D12972356

Pulled By: RSNara

fbshipit-source-id: 838604a791dfdc86bacf8b49f6c399920a3f57bc
t-nanava pushed a commit to microsoft/react-native-macos that referenced this pull request Jun 17, 2019
Summary:
Related to facebook#22100 . I had this issue before(facebook#22154 & facebook#22172).

Turn Flow strict mode on for Libraries/Components/TimePickerAndroid/TimePickerAndroid.android.js.

- [x] npm run prettier
- [x] npm run flow
- [x] npm run flow-check-ios
- [x] npm run flow-check-android
- [x] npm run lint
- [x] npm run test
- [x] ./scripts/run-android-local-unit-tests.sh

[GENERAL][ENHANCEMENT][TimePickerAndroid.android.js] - apply flow strict-local
Pull Request resolved: facebook#22188

Reviewed By: TheSavior

Differential Revision: D12972356

Pulled By: RSNara

fbshipit-source-id: 838604a791dfdc86bacf8b49f6c399920a3f57bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

API: TimePickerAndroid CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Flow Platform: Android Android applications.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants