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

Update the flags needed for Android compatiblity #1191

Merged
merged 1 commit into from
Aug 26, 2019
Merged

Update the flags needed for Android compatiblity #1191

merged 1 commit into from
Aug 26, 2019

Conversation

jvmunhoz
Copy link
Contributor

@jvmunhoz jvmunhoz commented Aug 19, 2019

Added a platform check so that the flags will only be set if the OS being run is Android, as they aren't needed for iOS.

Also changed the original "&&" structure for a simple "if" structure, since the original would incur on a "no-unused-expressions" error on default ESLint configurations. Said error can be overridden by setting the "allowShortCircuit" option to "true" on .eslintrc, but since current guidelines don't recommend it, such cases should be avoided as much as possible, hence the change.

Added a platform check so that the flags will only be set if the OS being run is Android, as they aren't needed for iOS. 

Also changed the original "&&" structure for a simple "if" structure, since the original would incur on a "no-unused-expressions" error on default ESLint configurations. Said error can be overridden by allowing the "allowShortCircuit" option on .eslintrc, but since current guidelines don't recommend it, such cases should be avoided as much as possible, hence the change.
@react-native-bot
Copy link

Deploy preview for react-native ready!

Built with commit b99f712

https://deploy-preview-1191--react-native.netlify.com

Changes to docs/ are reflected in the next "master" version.

Thank you for your contributions.

How to ContributeDocumentation Sources

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