Skip to content

Update the flags needed for Android compatiblity - #1191

Merged
charpeni merged 1 commit into
react:masterfrom
jvmunhoz:patch-1
Aug 26, 2019
Merged

charpeni merged 1 commit into
react:masterfrom
jvmunhoz:patch-1

Conversation

@jvmunhoz

@jvmunhoz jvmunhoz commented Aug 19, 2019 •

Copy link
Copy Markdown
Contributor

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

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 Contribute • Documentation 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