Skip to content

Conversation

@ph0ph0
Copy link
Contributor

@ph0ph0 ph0ph0 commented Feb 14, 2020

Summary:

I tried using the doctor command in my machine but it crashed like this:

image

Turned out to be a problem with Android SDK not being identified and throwing an error because it returns versions in the androidSDK.ts

@thymikee
Copy link
Member

Hey! Thanks for this PR. There seems to be a mismatch between your Prettier version and what we use here. Could you please run yarn lint --fix to resolve styling issues?

Copy link
Member

@thymikee thymikee left a comment

Choose a reason for hiding this comment

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

👍

const versionsToShow = versions.join(', ');
const versionsToShow = Array.isArray(versions)
? versions.join(', ')
: 'N/A';
Copy link
Member

Choose a reason for hiding this comment

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

Please update the HealthCheckResult types to account for this type, so we can avoid similar issues in the future

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @thymikee, thanks very much for the pointers, I have made the changes :) Thanks!

@thymikee thymikee merged commit 04537d5 into react-native-community:master Feb 16, 2020
thymikee pushed a commit that referenced this pull request Feb 17, 2020
* If versionsToShow is not an array, return N/A

* If versionsToShow is not an array, return N/A

* ran yarn lint --fix

* updated HealthCheckResult types to account for versions being either an array of strings or a string

* deleted unneeded history file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants