Skip to content

[TM] Add Spec for DatePickerAndroid - #24916

Closed
pedpess wants to merge 3 commits into
react:masterfrom
pedpess:spec-datepickerandroid
Closed

pedpess wants to merge 3 commits into
react:masterfrom
pedpess:spec-datepickerandroid

Conversation

@pedpess

@pedpess pedpess commented May 16, 2019

Copy link
Copy Markdown
Contributor

Summary

This PR solves part of this issue: #24875

Changelog

[General] [Added] - TM Spec for DatePickerAndroid

Test Plan

Flow passes.

@facebook-github-bot

Copy link
Copy Markdown
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need the corporate CLA signed.

If you have received this in error or have any questions, please contact us at cla@fb.com. Thanks!

@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. Run yarn lint --fix to automatically fix problems.

@react-native-bot react-native-bot added API: DatePickerAndroid Platform: Android Android applications. Type: Enhancement A new feature or enhancement of an existing feature. labels May 16, 2019
@ericlewis ericlewis added the Flow label May 16, 2019
@react-native-bot react-native-bot added the No CLA Authors need to sign the CLA before a PR can be reviewed. label May 17, 2019
@pedpess

ghost commented May 17, 2019

Copy link
Copy Markdown
Contributor Author

Hi @fkgozali :), is it normal that the e2e test fails?

@ericlewis

ghost commented May 17, 2019

Copy link
Copy Markdown
Contributor

@pedpess we aim for it not to be broken, but if it’s failing on iOS steps then that’s known.

@pedpess

ghost commented May 17, 2019

Copy link
Copy Markdown
Contributor Author

@ericlewis It's failing in RNTester/e2e/__tests__/Touchable-test.js for EarlGrey, which is the e2e I assume we are using here? Then I think I just iOS related.

@ericlewis

ghost commented May 17, 2019 via email

Copy link
Copy Markdown
Contributor

@cpojer

ghost commented May 20, 2019

Copy link
Copy Markdown
Contributor

Hey @pedpess do you mind signing the FB CLA so we can merge your change? It only takes a minute: code.facebook.com/cla

@pedpess

ghost commented May 20, 2019

Copy link
Copy Markdown
Contributor Author

Hi @cpojer , just did it :)

@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 May 20, 2019
@facebook-github-bot

ghost commented May 20, 2019

Copy link
Copy Markdown
Contributor

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@react-native-bot react-native-bot removed the No CLA Authors need to sign the CLA before a PR can be reviewed. label May 20, 2019
import Platform from 'Platform';

export interface Spec extends TurboModule {
+open: (options: ?Options) => Promise<DatePickerOpenAction>;

ghost May 20, 2019

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.

Unfortunately some of the types in DatePickerAndroidTypes like Date isn't compatible yet with our codegen system, so for now let's modify these types to use Object (I'll modify it after I import to FB)

ghost 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.

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

@react-native-bot

ghost commented May 21, 2019

Copy link
Copy Markdown
Collaborator

This pull request was successfully merged by @pedpess in 34d88bc.

When will my fix make it into a release? | Upcoming Releases

@react-native-bot react-native-bot added the Merged This PR has been merged. label May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Flow Merged This PR has been merged. Native Module Platform: Android Android applications. Type: Enhancement A new feature or enhancement of an existing feature.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants